Skip to content

Commit 25fa5fe

Browse files
chore(ci): address codeql alerts
explicitly set permissions for gha workflows
1 parent 7b99729 commit 25fa5fe

6 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/build-docker-auto.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
name: build-docker-auto
2121

22+
permissions:
23+
contents: write
24+
2225
on:
2326
push:
2427
branches:

.github/workflows/build-docker-manual.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
name: build-docker-manual
2121
run-name: build-docker ${{ inputs.dockerfile }}-${{ inputs.suffix }}
2222

23+
permissions:
24+
contents: write
25+
2326
on:
2427
workflow_dispatch:
2528
inputs:

.github/workflows/draft-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
type: string
1313
default: ""
1414

15+
permissions:
16+
contents: write
17+
1518
jobs:
1619
draft-release:
1720
runs-on: ubuntu-latest

.github/workflows/post-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types:
66
- published
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
cleanup:
1013
runs-on: ubuntu-latest

.github/workflows/techdev-project.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types:
99
- opened
1010

11+
permissions:
12+
issues: read
13+
pull-requests: read
14+
1115
jobs:
1216
add-to-project:
1317
runs-on: ubuntu-latest

.github/workflows/user-projects.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
types:
99
- assigned
1010

11+
permissions:
12+
issues: read
13+
pull-requests: read
14+
1115
jobs:
1216
add-to-project:
1317
uses: CCBR/.github/.github/workflows/auto-add-user-project.yml@v0.1.0

0 commit comments

Comments
 (0)