You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For Dependabot PRs, pull_request-triggered runs commonly do not receive Actions secrets, so this step (and therefore checkout/push) will likely fail. If you need to generate a token/push back to the PR branch, you may need a different trigger strategy (e.g. pull_request_target with a carefully controlled checkout/execution model, or a workflow_run-based approach).
Reasoning
Main functional concern: switching this workflow from pull_request_target to pull_request while adding a GitHub App token generated from repository secrets is very likely to break the workflow for Dependabot PRs.
GitHub intentionally treats Dependabot-triggered workflow runs as untrusted: for pull_request events they typically get a read-only GITHUB_TOKEN and do not receive repository Actions secrets. In this workflow the new Create token step depends on secrets.DEPS_UPDATER_CLIENT_APP_ID and secrets.DEPS_UPDATER_PRIVATE_KEY. If those secrets are not provided (common for Dependabot PR runs), actions/create-github-app-token won’t be able to mint an installation token, and then checkout/push won’t work.
The rest of the changes (using the app’s bot name/email, fetching the bot user id via gh api, reducing GITHUB_TOKEN permissions to contents: read) are internally consistent assuming the app token can be created and has contents: write on the repo.
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
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.
No description provided.