ci(security): skip deps gate on Dependabot-triggered runs#511
Merged
Conversation
Dependabot-triggered workflow runs execute in a restricted context with no access to Actions secrets, so the App-token step (secrets.DEPS_BOT_APP_ID / DEPS_BOT_APP_PRIVATE_KEY) fails with an empty app-id and reddens every Dependabot PR. The gate only inspects main's Dependabot-alert state — alerts aren't computed per PR branch — so it is redundant on a PR regardless. Skip it when github.actor is dependabot[bot]; the push-to-main and daily schedule runs (which have secrets) continue to enforce it, and PR-introduced vulnerable deps are still covered by the required Dependency Review check. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kk9GxWS9EpazjbwBKfMpUX
ericfitz
added a commit
that referenced
this pull request
Jul 1, 2026
The `install_vacuum.sh` bootstrap auto-detects the latest release; when that detection hiccups it builds a download URL with an empty version (.../download/v/vacuum_linux_x86_64_.tar.gz) and 404s, flaking the required OpenAPI Validation check (seen on #511). Download a pinned release asset directly instead so the step is deterministic. Claude-Session: https://claude.ai/code/session_01Kk9GxWS9EpazjbwBKfMpUX Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Problem
The
Security Deps Gatefails on every Dependabot PR (e.g. #508). Dependabot-triggered workflow runs execute in a restricted context with no access to Actions secrets, so thecreate-github-app-tokenstep gets an emptyapp-idand errors:Fix
Skip the gate job when
github.actor == 'dependabot[bot]'. Rationale:Unblocks the clean merge of Dependabot PRs like #508 (gitleaks-action v2→v3).
🤖 Generated with Claude Code