Skip to content

Commit 04d7289

Browse files
committed
ci: Update GitHub Actions workflow
- Update checkout action to v4 - Add explicit permissions - Improve security with minimal permissions
1 parent 8aacc71 commit 04d7289

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ jobs:
1010
shellcheck:
1111
name: Shellcheck
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315
steps:
14-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1517
- name: Run ShellCheck
1618
uses: ludeeus/action-shellcheck@master
1719
with:
@@ -21,8 +23,10 @@ jobs:
2123
test:
2224
name: Test Scripts
2325
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
2428
steps:
25-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
2630
- name: Test file permissions
2731
run: |
2832
chmod +x *.sh

0 commit comments

Comments
 (0)