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

Reduce scopes granted to GITHUB_TOKEN in GitHub Actions workflows #265

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

edmorley
Copy link
Member

As part of security-hardening our GHA workflows, this reduces the permissions granted to the automatically set GITHUB_TOKEN env var in GitHub Actions workflows to no more than what is required by that workflow.

See:
https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication

GUS-W-18053749.

As part of security-hardening our GHA workflows, this reduces the
permissions granted to the automatically set `GITHUB_TOKEN` env var
in GitHub Actions workflows to no more than what is required by that
workflow.

See:
https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions
https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication

GUS-W-18053749.
@edmorley edmorley self-assigned this Mar 17, 2025
@edmorley edmorley requested a review from a team as a code owner March 17, 2025 17:37
@edmorley edmorley enabled auto-merge (squash) March 17, 2025 17:37
@edmorley edmorley merged commit 3e090a6 into main Mar 17, 2025
5 checks passed
@edmorley edmorley deleted the edmorley/gha-hardening branch March 17, 2025 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants