ci: skip the jobs dependabot's token can't run - #235
Open
NickJosevski wants to merge 1 commit into
Open
Conversation
Every dependabot PR shows two red checks that have nothing to do with the bump: `validate-pr-title` fails with `Resource not accessible by integration`. The action labels the PR from the parsed title, and dependabot (like any fork) runs with a read-only token, so the label API call fails after the title has already validated. `add_label: false` returns before the action creates its Octokit client, so the check still validates the title - it just stops trying to write. Fork PRs get the same read-only token, so they're covered by the same condition. `Publish to Octopus` fails with `The Octopus instance URL is required`. The job runs with `Secret source: Dependabot`, which holds neither `OCTOPUS_SERVER` nor `vars.OCTOPUS_SERVICE_ACCOUNT`, so the login step has nothing to log in with. An actions bump produces no plugin change worth publishing, so the job is skipped rather than handed a copy of the secrets. `Build and Package`, `End-to-end tests` and CodeQL already pass on dependabot PRs and are left alone. Co-Authored-By: Claude Opus 5 (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.
Every dependabot PR currently shows two red checks that have nothing to do with the bump — #222, #224 and #225 all build green and pass e2e, then fail these two.
validate-pr-title—Resource not accessible by integrationThe action validates the title from the event payload and then labels the PR from it. Dependabot PRs (like fork PRs) run with a read-only token, so the label call fails after the title has already validated.
Reading the action at the pinned SHA,
applyLabelreturns before it constructs its Octokit client:so
add_label: falsekeeps the title check (checkConventionalCommits,checkScope,checkTextMatches— all payload-only, no API) and drops only the write. The condition covers fork PRs too, since they get the same read-only token.Publish to Octopus—The Octopus instance URL is requiredThe job log says
Secret source: Dependabot, and that store holds neitherOCTOPUS_SERVERnorvars.OCTOPUS_SERVICE_ACCOUNT, soOctopusDeploy/loginhas nothing to log in with. An actions bump produces no plugin change worth publishing, so the job is skipped rather than handed a copy of the secrets.Not touched
Build and Package,End-to-end tests,Analyze (java)and CodeQL already pass on dependabot PRs, so their conditions are unchanged. The existing release-please condition onpublishis preserved and now&&-ed with the actor check.🤖 Generated with Claude Code