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

github: Minimize permissions granted to automated workflows / jobs #400

Merged
merged 1 commit into from
Nov 30, 2023

Commits on Nov 29, 2023

  1. github: Minimize permissions granted to automated workflows / jobs

    Jobs that use the GITHUB_TOKEN to perform sensitive actions on behalf of
    a real user may be granted a range of permissions. Instead of granting
    blanket permissions to read and write "all" APIs, we should really limit
    the permissions what any individual workflow or job can do.
    
    This commit sets the default permissions for each workflow to "contents:
    read", which allows jobs to only read from the repository. The one job
    that requires additional permission is our "tagged_release" job which
    additional requires write access.
    
    Link: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idpermissions
    Link: linuxwacom#317
    Signed-off-by: Jason Gerecke <[email protected]>
    jigpu committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    0e060fb View commit details
    Browse the repository at this point in the history