fix(guard): add copilot-swe-agent to trusted first-party bots#2777
Merged
fix(guard): add copilot-swe-agent to trusted first-party bots#2777
Conversation
Copilot
AI
changed the title
[WIP] Fix integrity filter blocking PR read on public repos
fix(guard): add copilot-swe-agent to trusted first-party bots
Mar 29, 2026
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PRs opened by Copilot's coding agent (
app/copilot-swe-agent) were not recognized as trusted first-party bots, causing them to receivenone/unapprovedintegrity. On public repos with auto-defaultedmin-integrity: approved, this blockedpull_request_readon any PR the agent authored — a chicken-and-egg problem for PR review workflows.Changes
guards/github-guard/rust-guard/src/labels/helpers.rs— add all three login variants tois_trusted_first_party_bot():guards/github-guard/rust-guard/src/labels/mod.rs— extendtest_trusted_first_party_bot_detectionto assert all three variants are trusted, including case-insensitive matchingWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
example.com/tmp/go-build3121127075/b334/launcher.test /tmp/go-build3121127075/b334/launcher.test -test.testlogfile=/tmp/go-build3121127075/b334/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build3121127075/b237/vet.cfg ebug/debug.s .go x_amd64/compile /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet fips140 /home/REDACTED/wor-unreachable=false x_amd64/compile 6871�� g_.a JWaf/v-LJHyKfeZzW2BDEJWaf x_amd64/vet /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /home/REDACTED/wor-atomic /home/REDACTED/wor-bool x_amd64/vet(dns block)invalid-host-that-does-not-exist-12345.com/tmp/go-build3121127075/b319/config.test /tmp/go-build3121127075/b319/config.test -test.testlogfile=/tmp/go-build3121127075/b319/testlog.txt -test.paniconexit0 -test.timeout=10m0s -m64�� ternal/wasm/counts.go ternal/wasm/engine.go x_amd64/compile /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet 6871160/b009/ 64-REDACTED-linux-unreachable=false x_amd64/compile --no�� @v1.1.3/cpu/arm/arm.go /home/REDACTED/.rustup/toolchains/-dumpbase x_amd64/vet bug/deps/rustcKv/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet bug/deps/github_-unsafeptr=false bug/deps/github_-unreachable=false x_amd64/vet(dns block)nonexistent.local/tmp/go-build3121127075/b334/launcher.test /tmp/go-build3121127075/b334/launcher.test -test.testlogfile=/tmp/go-build3121127075/b334/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build3121127075/b237/vet.cfg ebug/debug.s .go x_amd64/compile /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet fips140 /home/REDACTED/wor-unreachable=false x_amd64/compile 6871�� g_.a JWaf/v-LJHyKfeZzW2BDEJWaf x_amd64/vet /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /home/REDACTED/wor-atomic /home/REDACTED/wor-bool x_amd64/vet(dns block)slow.example.com/tmp/go-build3121127075/b334/launcher.test /tmp/go-build3121127075/b334/launcher.test -test.testlogfile=/tmp/go-build3121127075/b334/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build3121127075/b237/vet.cfg ebug/debug.s .go x_amd64/compile /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet fips140 /home/REDACTED/wor-unreachable=false x_amd64/compile 6871�� g_.a JWaf/v-LJHyKfeZzW2BDEJWaf x_amd64/vet /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /home/REDACTED/wor-atomic /home/REDACTED/wor-bool x_amd64/vet(dns block)this-host-does-not-exist-12345.com/tmp/go-build3121127075/b343/mcp.test /tmp/go-build3121127075/b343/mcp.test -test.testlogfile=/tmp/go-build3121127075/b343/testlog.txt -test.paniconexit0 -test.timeout=10m0s /tmp/go-build3121127075/b273/vet.cfg g_.a /home/REDACTED/worruntime/pprof x_amd64/vet /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet 6871160/b073/ /home/REDACTED/wor-unreachable=false x_amd64/vet 6871�� afu_mdwfy /home/REDACTED/wor-nolocalimports x_amd64/vet /home/REDACTED/wor/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /home/REDACTED/wor-unsafeptr=false /home/REDACTED/wor-unreachable=false x_amd64/vet(dns block)If you need me to access, download, or install something from one of these locations, you can either:
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.