Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Limit the permissions of the GITHUB_TOKEN in the PR workflow #609

Merged
merged 1 commit into from
Sep 10, 2021
Merged

ci: Limit the permissions of the GITHUB_TOKEN in the PR workflow #609

merged 1 commit into from
Sep 10, 2021

Conversation

jalseth
Copy link
Member

@jalseth jalseth commented Sep 10, 2021

By default, the GITHUB_TOKEN secret has relatively broad permissions and
could trigger various events such as a release to GitHub which we do not
want to allow in the pull request workflow. By limiting the permissions
of this workflow we can have more confidence that external dependencies in
the workflow cannot cause unintended side effects in the workflow.

https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token

Signed-off-by: James Alseth james@jalseth.me

By default, the GITHUB_TOKEN secret has relatively broad permissions and
could trigger various events such as a release to GitHub which we do not
want to allow in the pull request workflow. By limiting the permissions
of this workflow we can have more confidence that external dependencies in
the workflow cannot cause unintended side effects.

https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token

Signed-off-by: James Alseth <james@jalseth.me>
@jalseth jalseth merged commit ad06e3d into open-policy-agent:master Sep 10, 2021
@jalseth jalseth deleted the limit-pr-workflow-permissions branch September 10, 2021 04:04
macox pushed a commit to macox/conftest that referenced this pull request Oct 5, 2021
…n-policy-agent#609)

By default, the GITHUB_TOKEN secret has relatively broad permissions and
could trigger various events such as a release to GitHub which we do not
want to allow in the pull request workflow. By limiting the permissions
of this workflow we can have more confidence that external dependencies in
the workflow cannot cause unintended side effects.

https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token

Signed-off-by: James Alseth <james@jalseth.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant