Skip to content

Commit a96ceca

Browse files
authored
Merge pull request #175 from mlcommons/alert-autofix-8
Potential fix for code scanning alert no. 8: Workflow does not contain permissions
2 parents 27566be + 80aa138 commit a96ceca

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

.github/workflows/cla.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55
types: [created]
66
pull_request_target:
77
types: [opened,closed,synchronize]
8-
8+
permissions:
9+
contents: read
10+
pull-requests: write
11+
actions: read
12+
statuses: write
913
jobs:
1014
cla-check:
1115
runs-on: ubuntu-latest

.github/workflows/mlperf-inference-bert.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- '.github/workflows/test-mlperf-inference-bert-deepsparse-tf-onnxruntime-pytorch.yml'
88
- '**'
99
- '!**.md'
10-
10+
permissions:
11+
contents: read
1112
jobs:
1213
build:
1314
runs-on: ${{ matrix.os }}

.github/workflows/mlperf-inference-resnet50.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- '.github/workflows/mlperf-inference-resnet50.yml'
88
- '**'
99
- '!**.md'
10-
10+
permissions:
11+
contents: read
1112
jobs:
1213
build:
1314

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ on:
88
branches:
99
- main
1010
- dev
11-
11+
permissions:
12+
contents: read
1213
jobs:
13-
1414
publish:
1515
name: Publish the site
1616
runs-on: ubuntu-latest
@@ -28,4 +28,4 @@ jobs:
2828
run: pip install -r docs/requirements.txt
2929

3030
- name: Run Mkdocs deploy
31-
run: mkdocs gh-deploy --force
31+
run: mkdocs gh-deploy --force

.github/workflows/test-mlc-docker-core.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- '.github/workflows/test-mlc-docker-core.yml'
88
- '**'
99
- '!**.md'
10-
10+
permissions:
11+
contents: read
1112
jobs:
1213
test_mlc_docker_core:
1314

.github/workflows/test-mlc-podman.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- '**'
99
- '!**.md'
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
test_mlc_docker_core:
1316

0 commit comments

Comments
 (0)