[actions] restrict permissions for GITHUB_TOKEN
This commit is contained in:
committed by
Jordan Harband
parent
2dad0455ec
commit
59532c74c6
4
.github/workflows/shellcheck.yml
vendored
4
.github/workflows/shellcheck.yml
vendored
@@ -4,6 +4,8 @@ on: [pull_request, push]
|
||||
|
||||
jobs:
|
||||
shellcheck_matrix:
|
||||
permissions:
|
||||
contents: read
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@@ -32,6 +34,8 @@ jobs:
|
||||
run: shellcheck -s ${{ matrix.shell }} ${{ matrix.file }}
|
||||
|
||||
shellcheck:
|
||||
permissions:
|
||||
contents: none
|
||||
needs: [shellcheck_matrix]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user