Only set contents: read permission in GitHub Action
This commit is contained in:
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
@@ -9,6 +9,9 @@ concurrency:
|
|||||||
# Cancels pending runs when a PR gets updated.
|
# Cancels pending runs when a PR gets updated.
|
||||||
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
|
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
permissions:
|
||||||
|
# Sets permission policy for `GITHUB_TOKEN`
|
||||||
|
contents: read
|
||||||
jobs:
|
jobs:
|
||||||
x86_64-linux-debug:
|
x86_64-linux-debug:
|
||||||
timeout-minutes: 420
|
timeout-minutes: 420
|
||||||
|
|||||||
Reference in New Issue
Block a user