Skip to content

Commit c4da931

Browse files
authored
Merge pull request #39 from UncleGrumpy/code_scan_alerts
Add missing permissions to workflows
2 parents a26ed21 + bbaa4d4 commit c4da931

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/check-formatting.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323
format-check:
2424
runs-on: ubuntu-24.04
2525
container: erlang:28
26+
permissions:
27+
contents: read
28+
2629
steps:
30+
2731
- name: "Install deps"
2832
run: |
2933
apt install -y git
@@ -35,7 +39,8 @@ jobs:
3539
cd erlfmt
3640
rebar3 as release escriptize
3741
38-
- uses: actions/checkout@v4
42+
- name: "Checkout code"
43+
uses: actions/checkout@v5
3944

4045
- name: "Check formatting with erlfmt"
4146
run: |

.github/workflows/reuse-lint.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ concurrency:
1313
jobs:
1414
test:
1515
runs-on: ubuntu-24.04
16+
permissions:
17+
contents: read
18+
1619
steps:
17-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v5
1821
- name: REUSE Compliance Check
1922
uses: fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542

0 commit comments

Comments
 (0)