Skip to content

Commit ce0e9b9

Browse files
[StepSecurity] ci: Harden GitHub Actions (#229)
Signed-off-by: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com>
1 parent 06d76f0 commit ce0e9b9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.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
jobs:
1013
test:
1114
runs-on: ${{ matrix.os }}

.github/workflows/publish.yml

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

8+
permissions:
9+
contents: read
10+
811
jobs:
912
release-build:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)