Only set contents: read permission in GitHub Action

This commit is contained in:
sobolevn 2024-08-27 11:52:51 +03:00 committed by Andrew Kelley
parent 1a178d4995
commit 9a12905a2d

View File

@ -9,6 +9,9 @@ concurrency:
# Cancels pending runs when a PR gets updated.
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
permissions:
# Sets permission policy for `GITHUB_TOKEN`
contents: read
jobs:
x86_64-linux-debug:
timeout-minutes: 420