Skip to content

Commit 774ff75

Browse files
authored
Merge pull request #4495 from The-OpenROAD-Project-staging/codeql-permissions-fix
ci: add explicit permissions blocks to 11 workflows
2 parents 56ea011 + f2685ff commit 774ff75

11 files changed

Lines changed: 39 additions & 0 deletions

‎.github/workflows/black.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Lint Python
22

33
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read
7+
48
jobs:
59
lint:
610
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}

‎.github/workflows/github-actions-cron-test-installer.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
# Allows you to run this workflow manually from the Actions tab
2222
workflow_dispatch:
2323

24+
permissions:
25+
contents: read
26+
2427
jobs:
2528
testInstaller:
2629
strategy:

‎.github/workflows/github-actions-cron-update-OR.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
# Allows you to run this workflow manually from the Actions tab
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
issues: write
12+
813
jobs:
914
update:
1015
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}

‎.github/workflows/github-actions-cron-update-yosys.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
# Allows you to run this workflow manually from the Actions tab
77
workflow_dispatch:
88

9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
913
jobs:
1014
update:
1115
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}

‎.github/workflows/github-actions-cron-util-test.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
1515

16+
permissions:
17+
contents: read
18+
1619
jobs:
1720
testUtilScripts:
1821
strategy:

‎.github/workflows/github-actions-lint-tcl.yml‎

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

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
Tclint:
1316
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}

‎.github/workflows/github-actions-manual-update-rules.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
required: true
88
default: 'normal'
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
update:
1215
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}

‎.github/workflows/github-actions-on-push.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
# Allows you to run this workflow manually from the Actions tab
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
scan:
1114
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}

‎.github/workflows/github-actions-publish-docker-images.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ on:
2525
- tools/codespace/scripts/**
2626
- tools/codespace/Dockerfile-lxqt
2727

28+
permissions:
29+
contents: read
30+
packages: write
31+
2832
jobs:
2933
buildCodespaceImage:
3034
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}

‎.github/workflows/github-actions-update-rules.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
types:
55
- set-new-golden
66

7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
711
jobs:
812
update:
913
runs-on: ${{ vars.USE_SELF_HOSTED == 'true' && 'self-hosted' || 'ubuntu-latest' }}

0 commit comments

Comments
 (0)