Skip to content

Commit 72679ad

Browse files
committed
Add permissions to check-formatting workflow
Adds read only permissions to workflow for security. Bumps checkout action to v5. Signed-off-by: Winford <[email protected]>
1 parent b23cf0c commit 72679ad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
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: |

0 commit comments

Comments
 (0)