Commit 83270d6
authored
🩹 [Patch]: Improve security, update dependencies, and reorganize source files (#19)
This patch modernizes the repository's CI/CD infrastructure by pinning
dependencies to specific commits, improving security posture, fixing
linter warnings, and aligning the source code structure with PSModule
organization standards.
- Fixes #18
## Changed
### Workflow Security Improvements
- Pinned all GitHub Actions to commit SHAs with version comments for
reproducible builds
- Added `persist-credentials: false` to all checkout steps for improved
security
- Changed Release workflow trigger from `pull_request_target` to
`pull_request` for better fork handling
- Added path filters to Release workflow to only trigger on relevant
file changes (`action.yml`, `src/**`)
### Dependency Management
- Updated Dependabot schedule from `weekly` to `daily` with 7-day
cooldown for balanced update frequency
- Updated `actions/checkout` to `v6.0.2` (SHA:
`de0fac2e4500dabe0009e67214ff5f5447ce83dd`)
- Updated `super-linter/super-linter` to `v8.3.2` (SHA:
`d5b0a2ab116623730dd094f15ddc1b6b25bf7b99`)
- Updated `PSModule/GitHub-Script` to `v1.7.10` (SHA:
`0097f3bbe3f413f3b577b9bcc600727b0ca3201a`)
### Action Migration
- Renamed `Auto-Release.yml` workflow to `Release.yml`
- Migrated from `PSModule/Auto-Release@v1` to
`PSModule/Release-GHRepository@v2.0.1` (SHA:
`88c70461c8f16cc09682005bcf3b7fca4dd8dc1a`)
### Source Reorganization
- Moved source files from `scripts/` to `src/` folder for consistency
with other PSModule actions
- Updated `action.yml` to reference new source path
### Linter Configuration
- Removed `.jscpd.json` configuration file
- Disabled `VALIDATE_BIOME_FORMAT` and `VALIDATE_JSCPD` validators in
super-linter
### Code Quality Fixes
- Fixed `PSAvoidUsingWriteHost` warnings by replacing `Write-Host` with
`Write-Output` in `main.ps1`
### Action Improvements
- Added `Token` input with default value `${{ github.token }}` for
automatic authentication
- Passed `GITHUB_TOKEN` environment variable to the GitHub-Script action1 parent e72094e commit 83270d6
File tree
8 files changed
+34
-25
lines changed- .github
- linters
- workflows
- src
8 files changed
+34
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| 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 | | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | | - | |
32 | | - | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
13 | | - | |
| 19 | + | |
14 | 20 | | |
| 21 | + | |
15 | 22 | | |
16 | 23 | | |
17 | 24 | | |
| |||
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
31 | | - | |
| 38 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments