File tree Expand file tree Collapse file tree 7 files changed +30
-1
lines changed
Expand file tree Collapse file tree 7 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ concurrency:
1717 group : ${{ github.workflow }}-${{ github.ref }}
1818 cancel-in-progress : true
1919
20+ # Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
21+ permissions :
22+ contents : read
23+
2024jobs :
2125
2226 checkGoReleaserConfig :
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ concurrency:
1818 group : ${{ github.workflow }}-${{ github.ref }}
1919 cancel-in-progress : true
2020
21+ # Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
22+ permissions :
23+ contents : read
24+
2125jobs :
2226
2327 validateCodeFormatGo :
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ concurrency:
2323 group : ${{ github.workflow }}-${{ github.ref }}
2424 cancel-in-progress : true
2525
26+ # Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
27+ permissions :
28+ contents : read
29+
2630jobs :
2731 lintGitHubActionsWithActionLint :
2832 runs-on : ubuntu-latest
7478 uses : actions-rust-lang/setup-rust-toolchain@v1
7579
7680 - name : Install zizmor
77- run : cargo install zizmor
81+ # Install zizmor if it's not already installed via the Rust cache
82+ run : zizmor --help || cargo install zizmor
7883
7984 - name : Run zizmor on GitHub Actions
8085 run : zizmor .github/workflows/*
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ concurrency:
1818 group : ${{ github.workflow }}-${{ github.ref }}
1919 cancel-in-progress : true
2020
21+ # Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
22+ permissions :
23+ contents : read
24+
2125jobs :
2226
2327 lintGo :
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ concurrency:
1919 group : ${{ github.workflow }}-${{ github.ref }}
2020 cancel-in-progress : true
2121
22+ # Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
23+ permissions :
24+ contents : read
25+
2226jobs :
2327 lintMarkdown :
2428 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ concurrency:
2323 group : ${{ github.workflow }}-${{ github.ref }}
2424 cancel-in-progress : true
2525
26+ # Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
27+ permissions :
28+ contents : read
29+
2630jobs :
2731 lintYaml :
2832 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ concurrency:
1818 group : ${{ github.workflow }}-${{ github.ref }}
1919 cancel-in-progress : true
2020
21+ # Ref: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token
22+ permissions :
23+ contents : read
24+
2125jobs :
2226
2327 testGo :
You can’t perform that action at this time.
0 commit comments