Skip to content

Commit 93cc2fa

Browse files
authored
Merge pull request #63 from bastelfreak/permissions
CI: Set minimal token permissions
2 parents dac8b37 + 8d3204b commit 93cc2fa

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build_container.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: Build and publish a 🛢️ container
23

34
on:
@@ -8,6 +9,9 @@ on:
89
- '*'
910
workflow_dispatch:
1011

12+
permissions:
13+
contents: read # minimal required permissions to clone repo
14+
1115
jobs:
1216
setup-matrix:
1317
runs-on: ubuntu-latest

.github/workflows/ci.yaml

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

10+
permissions:
11+
contents: read # minimal required permissions to clone repo
12+
1013
jobs:
1114
setup-matrix:
1215
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
tags:
1010
- '*'
1111

12+
permissions:
13+
contents: read # minimal required permissions to clone repo
14+
1215
jobs:
1316
release:
1417
name: Release

.github/workflows/security_scanning.yml

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

12+
permissions:
13+
contents: read # minimal required permissions to clone repo
14+
1215
jobs:
1316
setup-matrix:
1417
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)