Skip to content

Commit f023901

Browse files
authored
ci: explicit permissions to actions (#529)
1 parent aeffe10 commit f023901

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- develop
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
1114
env:
1215
CARGO_INCREMENTAL: 0
1316
CARGO_NET_RETRY: 10
@@ -74,7 +77,7 @@ jobs:
7477
envFile: '.env'
7578

7679
- name: Install ONNX Runtime Library
77-
run: ./scripts/install_onnx.sh ${{ env.ONNXRUNTIME_VERSION }} linux x64 /tmp/onnxruntime
80+
run: ./scripts/install_onnx.sh "${{ env.ONNXRUNTIME_VERSION }}" linux x64 /tmp/onnxruntime
7881

7982
- name: Prepare test eszip binaries
8083
if: |

.github/workflows/mirror.yml

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

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
mirror:
1316
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
- develop
88
workflow_dispatch:
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
release:
1215
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)