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: restrict the job permission for security #84

Merged
merged 1 commit into from Jan 7, 2024
Merged

ci: restrict the job permission for security #84

merged 1 commit into from Jan 7, 2024

Conversation

suzuki-shunsuke
Copy link
Contributor

@suzuki-shunsuke suzuki-shunsuke commented Jan 4, 2024

I forgot to set the permission in #82 .
This workflow doesn't require any permissions.
The permission should be restricted to least privileges.

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#defining-access-for-the-github_token-scopes-1

You can use the following syntax to disable permissions for all of the available scopes:

permissions: {}

This workflow doesn't require any permissions.
@suzuki-shunsuke suzuki-shunsuke marked this pull request as ready for review January 4, 2024 05:27
@hexdigest hexdigest merged commit 4b6adb4 into gojuno:master Jan 7, 2024
1 check passed
@suzuki-shunsuke suzuki-shunsuke deleted the ci-restrict-permissions branch January 7, 2024 22:51
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.

None yet

2 participants