Skip to content

Commit 71a87ff

Browse files
authored
Fix token permissions for OpenSSF scorecard. (#4757)
Signed-off-by: Pavel Chekin <[email protected]>
1 parent 006191b commit 71a87ff

9 files changed

+17
-4
lines changed

.github/workflows/build-macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
required: true
88
type: string
99

10+
permissions: read-all
11+
1012
jobs:
1113
build-macos:
1214
runs-on: ${{ matrix.runner }}

.github/workflows/create_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ on:
1515
pull_request:
1616
paths: [.github/workflows/create_release.yml]
1717

18+
permissions: read-all
19+
1820
jobs:
1921

2022
release:
2123
if: ${{ github.repository == 'triton-lang/triton' }}
2224
name: Create Release
2325
runs-on: ubuntu-latest
24-
permissions:
25-
contents: write
2626
outputs:
2727
release_name: "${{ steps.release_name.outputs.name }}"
2828
steps:

.github/workflows/documentation.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7-
permissions:
8-
contents: write
7+
permissions: read-all
98

109
jobs:
1110
Build-Documentation:

.github/workflows/integration-tests-amd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
required: true
88
type: string
99

10+
permissions: read-all
11+
1012
jobs:
1113
integration-tests-amd:
1214
runs-on: ${{ matrix.runner }}

.github/workflows/integration-tests-nvidia.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
required: true
88
type: string
99

10+
permissions: read-all
11+
1012
jobs:
1113
integration-tests-nvidia:
1214
runs-on: ${{ matrix.runner }}

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Pre-Commit Check
33
on:
44
workflow_call:
55

6+
permissions: read-all
7+
68
jobs:
79
pre-commit:
810
name: pre-commit (code formatting)

.github/workflows/runner-preparation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
matrix-MACOS:
1111
value: ${{ jobs.prepare.outputs.matrix-MACOS }}
1212

13+
permissions: read-all
14+
1315
jobs:
1416
prepare:
1517
runs-on: ubuntu-latest

.github/workflows/triton-benchmarks-bmg.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Triton benchmarks, BMG
22

3+
permissions: read-all
4+
35
on:
46
pull_request:
57
branches:

.github/workflows/triton-benchmarks-pvc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Triton benchmarks, PVC
22

3+
permissions: read-all
4+
35
on:
46
pull_request:
57
branches:

0 commit comments

Comments
 (0)