Skip to content
Snippets Groups Projects
Unverified Commit ab8c5ccf authored by sudoforge's avatar sudoforge Committed by GitHub
Browse files

ci: limit default permissions to contents.read (#1447)

This change refactors all root pipelines (`trunk` and `presubmit`) to
limit the contents permission to read. By default, GitHub has taken the
overly-permissive approach of granting all permissions if the
`permissions` map is not explicitly defined. Usability wins out over
security, again.

Change-Id: Idaca851385fb82eefd6c7c9b8ee46b85a3f4901c
parent 6ee47b96
Branches
Tags
No related merge requests found
......@@ -20,6 +20,9 @@ concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-and-test:
uses: ./.github/workflows/build-and-test.yml
......
......@@ -15,6 +15,9 @@ concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build-and-test:
uses: ./.github/workflows/build-and-test.yml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment