Skip to content

Commit c3862d1

Browse files
authored
fix: code scanning alert: Workflow does not contain permissions (#24)
1 parent ea50e36 commit c3862d1

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

.github/workflows/cf.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ on:
2525
branches:
2626
- main
2727

28+
permissions:
29+
contents: read
30+
2831
concurrency:
2932
group: cf-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
3033
cancel-in-progress: true

.github/workflows/release.yaml

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

8+
permissions:
9+
contents: read
10+
811
jobs:
912
tests:
1013
uses: capire/samples/.github/workflows/test.yaml@main

.github/workflows/test.yaml

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

12+
permissions:
13+
contents: read
1214
jobs:
1315
tests:
1416
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)