Skip to content

Conversation

@per1234
Copy link
Collaborator

@per1234 per1234 commented Sep 20, 2025

The personal access token used by the action to make the report comment must have write permissions. The action uses the automatically generated GITHUB_TOKEN token by default.

When the action is used in a public repository, it is essential for the maintainer of the repository to understand how the permissions of that token work. For security reasons, the permissions of the token are downgraded to write when used in a workflow run triggered by an event that comes from a fork. This is the reason why another approach must be used to run the action's workflow in public repositories.

The action documentation provides an explanation of this, but relies on the GitHub Actions documentation to explain the details of the token permissions downgrade system. Due to changes in the GitHub documentation, the linked page no longer contains that information. The link is hereby updated to point to the information in its new location in the GitHub Actions docs.

…triggered by events from forks

The personal access token used by the action to make the report comment must have write permissions. The action uses the
automatically generated `GITHUB_TOKEN` token by default.

When the action is used in a public repository, it is essential for the maintainer of the repository to understand how
the permissions of that token work. For security reasons, the permissions of the token are downgraded to write when used
in a workflow run triggered by an event that comes from a fork. This is the reason why another approach must be used to
run the action's workflow in public repositories.

The action documentation provides an explanation of this, but relies on the GitHub Actions documentation to explain the
details of the token permissions downgrade system. Due to changes in the GitHub documentation, the linked page no longer
contains that information. The link is hereby updated to point to the information in its new location in the GitHub
Actions docs.
@per1234 per1234 self-assigned this Sep 20, 2025
@per1234 per1234 added type: imperfection Perceived defect in any part of project topic: documentation Related to documentation for the project labels Sep 20, 2025
@per1234 per1234 merged commit 8b6c111 into arduino:main Sep 20, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: documentation Related to documentation for the project type: imperfection Perceived defect in any part of project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant