Commit 57e85ec
authored
🩹[Patch]: Update GitHub Actions security and linting configuration (#36)
This update improves the security posture of GitHub Actions workflows by
addressing zizmor linting warnings. All action references are now pinned
to specific commit hashes, permissions follow the principle of least
privilege, and insecure workflow triggers have been replaced with safer
alternatives.
## Security improvements
### Pinned action references
All GitHub Actions are now pinned to specific commit SHA hashes instead
of mutable tags, preventing supply chain attacks:
- `actions/checkout` → `de0fac2e4500dabe0009e67214ff5f5447ce83dd`
(v6.0.2)
- `actions/upload-artifact` → `ea165f8d65b6e75b540449e92b4886f43607fa02`
(v4.6.2)
- `super-linter/super-linter` →
`d5b0a2ab116623730dd094f15ddc1b6b25bf7b99` (v8.3.2)
- `super-linter/super-linter/slim` →
`2bdd90ed3262e023ac84bf8fe35dc480721fc1f2` (v8.2.1)
- `PSModule/Auto-Release` → `eabd533035e2cb9822160f26f2eda584bd012356`
(v1.9.5)
- `PSModule/Install-PSModuleHelpers` →
`d60d63e4be477d1ca0c67c6085101fb109bce8f1` (v1.0.6)
### Workflow trigger security
Changed `pull_request_target` to `pull_request` in Auto-Release workflow
to prevent potential code injection attacks from forked repositories.
### Least privilege permissions
Moved `statuses: write` permission from workflow-level to job-level in
Action-Test workflow, applying it only to the `ActionTestDefault` job
that actually requires it for the linter.
### Credential persistence
Added `persist-credentials: false` to checkout steps to prevent
credential persistence in artifacts.
## Linting configuration
- Enabled `VALIDATE_GITHUB_ACTIONS_ZIZMOR` in Linter workflow
(previously disabled)
- Updated dependabot schedule to daily with 7-day cooldown for better
dependency management1 parent 15dc407 commit 57e85ec
File tree
5 files changed
+20
-16
lines changed- .github
- workflows
5 files changed
+20
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
81 | | - | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
35 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments