Skip to content

Commit 6d809c3

Browse files
build(deps): bump super-linter/super-linter from 8.0.0 to 8.1.0 in the actions-minor group across 1 directory (#268)
* build(deps): bump super-linter/super-linter Bumps the actions-minor group with 1 update in the / directory: [super-linter/super-linter](https://github.com/super-linter/super-linter). Updates `super-linter/super-linter` from 8.0.0 to 8.1.0 - [Release notes](https://github.com/super-linter/super-linter/releases) - [Changelog](https://github.com/super-linter/super-linter/blob/main/CHANGELOG.md) - [Commits](super-linter/super-linter@5119dcd...ffde3b2) --- updated-dependencies: - dependency-name: super-linter/super-linter dependency-version: 8.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: actions-minor ... Signed-off-by: dependabot[bot] <[email protected]> * fix: Disable credential persistence for checkout actions in CI workflows * chore: formatting * fix: validate release version format to match X.Y.Z pattern * fix: disable validation for GitHub Actions ZIZMOR in lint workflow --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mark Johnson <[email protected]>
1 parent a179214 commit 6d809c3

File tree

9 files changed

+25
-5
lines changed

9 files changed

+25
-5
lines changed

.github/workflows/check-dist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
uses: actions/checkout@v5
2626
with:
2727
fetch-depth: 0
28+
persist-credentials: false
2829

2930
- name: Setup Node.js
3031
id: setup-node

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
- name: Checkout
2323
id: checkout
2424
uses: actions/checkout@v5
25+
with:
26+
persist-credentials: false
2527

2628
- name: Setup Node.js
2729
id: setup-node

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
- name: Checkout
3232
id: checkout
3333
uses: actions/checkout@v5
34+
with:
35+
persist-credentials: false
3436

3537
- name: Initialize CodeQL
3638
id: initialize

.github/workflows/lint.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/checkout@v5
2525
with:
2626
fetch-depth: 0
27+
persist-credentials: false
2728

2829
- name: Setup Node.js
2930
id: setup-node
@@ -42,7 +43,7 @@ jobs:
4243

4344
- name: Lint Codebase
4445
id: super-linter
45-
uses: super-linter/super-linter@5119dcd8011e92182ce8219d9e9efc82f16fddb6 # v8.0.0
46+
uses: super-linter/super-linter@ffde3b2b33b745cb612d787f669ef9442b1339a6 # v8.1.0
4647
env:
4748
DEFAULT_BRANCH: main
4849
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -59,4 +60,5 @@ jobs:
5960
VALIDATE_TYPESCRIPT_STANDARD: false # Using biome
6061
VALIDATE_TYPESCRIPT_ES: false # Using biome
6162
VALIDATE_TYPESCRIPT_PRETTIER: false # Using biome
63+
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false # This is new. Will investigate this further
6264

.github/workflows/release-start.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- uses: actions/checkout@v5
2828
with:
2929
fetch-depth: 0 # Get all history which is required for parsing commits
30+
persist-credentials: false
3031

3132
- name: Setup Node.js
3233
id: setup-node
@@ -39,8 +40,18 @@ jobs:
3940
id: npm-ci
4041
run: npm ci --no-fund
4142

43+
- name: Validate version input
44+
run: |
45+
# Ensure the provided version strictly matches X.Y.Z where X,Y,Z are numeric to avoid injection.
46+
if ! [[ '${{ env.VERSION }}' =~ ^[0-9]+(\.[0-9]+){2}$ ]]; then
47+
echo "Error: release_version must match X.Y.Z (numeric). Got: ${{ env.VERSION }}" >&2
48+
exit 1
49+
fi
50+
4251
- name: Update package.json version
43-
run: npm version ${{ env.VERSION }} --no-git-tag-version
52+
# Quote the value so the shell treats it as a single literal argument (prevents command/word splitting).
53+
# Flag order changed (options first) for clarity but either order works.
54+
run: npm version --no-git-tag-version '${{ env.VERSION }}'
4455

4556
- name: Build the package
4657
run: npm run package

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
with:
2323
fetch-depth: 0 # Get all history
2424
fetch-tags: true
25+
persist-credentials: true
2526

2627
- name: Extract version from PR body
2728
id: extract-version

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
# Disabling shallow clone is recommended for improving relevancy of reporting
2222
fetch-depth: 0
23+
persist-credentials: false
2324

2425
- name: Setup Node.js
2526
uses: actions/setup-node@v4

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
]
4040
},
4141
"scripts": {
42-
"check": "biome check . && npx prettier -c \"*.md\" \".github/**/*.md\"",
43-
"check:fix": "biome check --write --unsafe . && npx prettier -w \"*.md\" \".github/**/*.md\"",
42+
"check": "biome check . && npx prettier -c \"*.md\" \"**/*.yml\" \".github/**/*.md\"",
43+
"check:fix": "biome check --write --unsafe . && npx prettier -w \"*.md\" \"**/*.yml\" \".github/**/*.md\"",
4444
"dev:parse-modules": "tsx scripts/dev-parse-modules.ts",
4545
"textlint": "textlint -c .github/linters/.textlintrc **/*.md",
4646
"textlint:fix": "textlint -c .github/linters/.textlintrc --fix **/*.md",

0 commit comments

Comments
 (0)