Skip to content

Commit 84559ef

Browse files
authored
Merge pull request #215 from wlemkows/fix-scorecard-issues
Add permissions to yml files
2 parents 2d4075a + 744c11b commit 84559ef

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.github/workflows/basic.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ env:
66
BUILD_DIR : "${{github.workspace}}/build/"
77
INSTL_DIR : "${{github.workspace}}/build/install-dir"
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
icx-build:
1114
name: Build - Intel C++ Compiler

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
analyze:
1010
name: Analyze
1111
permissions:
12-
security-events: write
12+
security-events: write
1313
strategy:
1414
fail-fast: false
1515
matrix:

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ concurrency:
1010
group: "docs"
1111
cancel-in-progress: true
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
build:
1518
runs-on: ubuntu-latest

.github/workflows/pr_push.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ concurrency:
66
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
77
cancel-in-progress: true
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
FastBuild:
1114
name: Fast build
@@ -83,5 +86,8 @@ jobs:
8386
needs: [Build]
8487
uses: ./.github/workflows/benchmarks.yml
8588
CodeQL:
89+
permissions:
90+
contents: read
91+
security-events: write
8692
needs: [Build]
8793
uses: ./.github/workflows/codeql.yml

0 commit comments

Comments
 (0)