Skip to content

Commit 58b1c32

Browse files
[sec-check] pr-validation.yml: add top-level permissions block (contents: read) (#1038)
check-base-branch and validate jobs declared no permissions, so their GITHUB_TOKEN inherited the repository default. Both are read-only. unit-tests and testsuite jobs already declare explicit permissions and are unaffected (job-level permissions override the workflow default). Fixes #1029 Signed-off-by: kubestellar-hive[bot] <280983584+kubestellar-hive[bot]@users.noreply.github.com> Co-authored-by: kubestellar-hive[bot] <280983584+kubestellar-hive[bot]@users.noreply.github.com>
1 parent 0963bbf commit 58b1c32

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/pr-validation.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- testing
77
merge_group:
88

9+
permissions:
10+
contents: read
11+
912
concurrency:
1013
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.pull_request.number) || github.run_id }}
1114
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

0 commit comments

Comments
 (0)