Skip to content

Commit df541bd

Browse files
authored
Merge pull request #53 from rapidfort/update-rapidfort-workflow-configuration
Updating Kimia Workflow for CI/CD configurations with required permis…
2 parents f4abdb5 + 8d88da1 commit df541bd

File tree

5 files changed

+47
-0
lines changed

5 files changed

+47
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
REGISTRY: ghcr.io
1114
IMAGE_BASE: ${{ github.repository }}

.github/workflows/codeql.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ on:
1919
schedule:
2020
- cron: '24 11 * * 5'
2121

22+
permissions:
23+
# required for all workflows
24+
security-events: write
25+
26+
# required to fetch internal or private CodeQL packs
27+
packages: read
28+
29+
# only required for workflows in private repositories
30+
actions: read
31+
contents: read
32+
2233
jobs:
2334
analyze:
2435
name: Analyze (${{ matrix.language }})

.github/workflows/docker-image.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ on:
1414
required: true
1515
default: "3.21-rfcurated"
1616

17+
permissions:
18+
# required for all workflows
19+
security-events: write
20+
21+
# required to fetch internal or private CodeQL packs
22+
packages: read
23+
24+
# only required for workflows in private repositories
25+
actions: read
26+
contents: read
27+
1728
jobs:
1829
build:
1930
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ on:
1414
- staging
1515
- production
1616

17+
permissions:
18+
# required for all workflows
19+
security-events: write
20+
21+
# required to fetch internal or private CodeQL packs
22+
packages: read
23+
24+
# only required for workflows in private repositories
25+
actions: read
26+
contents: read
27+
1728
env:
1829
REGISTRY: ghcr.io
1930
REPO_OWNER: ${{ github.repository_owner }}

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@ on:
66
pull_request:
77
branches: [main, develop]
88

9+
permissions:
10+
# required for all workflows
11+
security-events: write
12+
13+
# required to fetch internal or private CodeQL packs
14+
packages: read
15+
16+
# only required for workflows in private repositories
17+
actions: read
18+
contents: read
19+
920
jobs:
1021
build-test:
1122
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)