Skip to content

Commit b23d1f0

Browse files
[CI] Use least privileged tokens by default in workflows
1 parent 2a7b9e6 commit b23d1f0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/benchmarks.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ on:
2222
- L0_PERF
2323

2424
permissions:
25-
contents: write
26-
pull-requests: write
25+
contents: read
2726

2827
jobs:
2928
manual:
29+
permissions:
30+
contents: write
31+
pull-requests: write
3032
name: Compute Benchmarks
3133
uses: ./.github/workflows/reusable_benchmarks.yml
3234
with:

.github/workflows/reusable_benchmarks.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ on:
2020
default: 'L0_PERF'
2121

2222
permissions:
23-
contents: write
24-
pull-requests: write
23+
contents: read
2524

2625
env:
2726
UMF_DIR: "${{github.workspace}}/umf-repo"
@@ -33,6 +32,9 @@ jobs:
3332
# run only on upstream; forks will not have the HW
3433
if: github.repository == 'oneapi-src/unified-memory-framework'
3534
runs-on: ${{ inputs.runner }}
35+
permissions:
36+
contents: write
37+
pull-requests: write
3638

3739
steps:
3840
- name: Add comment to PR

0 commit comments

Comments
 (0)