Skip to content

Commit d7cd01a

Browse files
committed
Fix outdated Dependabot PR token claim in workflow-runs-dependabot-note
The reusable states that workflow runs triggered by Dependabot pull requests "run as if they are from a forked repository" with a read-only GITHUB_TOKEN that "cannot access any secrets". This contradicts the Dependabot troubleshooting article, which states that the permissions key can increase the token's access, and the "Permissions for forked repositories" section on the same workflow-syntax reference page, which scopes the write-to-read downgrade to pull requests from forked repositories only. It also contradicts the Dependabot/fetch-metadata README, whose auto-approving example relies on this exact pattern. Follow-up to #37657, which addressed other parts of this contradiction.
1 parent 3869fae commit d7cd01a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Workflow runs triggered by {% data variables.product.prodname_dependabot %} pull requests run as if they are from a forked repository, and therefore use a read-only `GITHUB_TOKEN`. These workflow runs cannot access any secrets. For information about strategies to keep these workflows secure, see [AUTOTITLE](/actions/reference/security/secure-use).
1+
By default, workflow runs triggered by {% data variables.product.prodname_dependabot %} pull requests use a read-only `GITHUB_TOKEN`. You can use the `permissions` key in your workflow to increase the access for the token. For more information, see [AUTOTITLE](/code-security/reference/supply-chain-security/troubleshoot-dependabot/dependabot-on-actions). For information about strategies to keep these workflows secure, see [AUTOTITLE](/actions/reference/security/secure-use).

0 commit comments

Comments
 (0)