Skip to content

Commit 1326a22

Browse files
dependabot[bot]neilime
authored andcommitted
chore(deps): bump actions/setup-node
Bumps the github-actions-dependencies group with 1 update in the /actions/helm/release-chart directory: [actions/setup-node](https://github.com/actions/setup-node). Updates `actions/setup-node` from 6.1.0 to 6.2.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@395ad32...6044e13) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 6.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions-dependencies ... Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Emilien Escalle <[email protected]>
1 parent c8f1af9 commit 1326a22

File tree

8 files changed

+71
-5
lines changed

8 files changed

+71
-5
lines changed

Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,26 @@ lint-fix: ## Execute linting and fix
1515
-e FIX_MARKDOWN_PRETTIER=true \
1616
-e FIX_NATURAL_LANGUAGE=true)
1717

18+
npm-audit-fix: ## Execute npm audit fix
19+
@set -uo pipefail; \
20+
overall_status=0; \
21+
packages="$$(find actions -type f -name package.json -not -path '*/node_modules/*' -print | sort)"; \
22+
echo "Running npm audit fix for package.json files under actions/ ..."; \
23+
for pkg in $$packages; do \
24+
pkg_dir="$$(dirname "$$pkg")"; \
25+
echo "---"; \
26+
npm install --prefix "$$pkg_dir"; \
27+
echo "npm audit fix in $$pkg_dir"; \
28+
if ! npm --prefix "$$pkg_dir" audit fix; then \
29+
overall_status=1; \
30+
fi; \
31+
done; \
32+
exit $$overall_status
33+
34+
ci: ## Execute CI tasks
35+
$(MAKE) npm-audit-fix
36+
$(MAKE) lint
37+
1838
test-build-application: ## Build the test application image
1939
@docker buildx build \
2040
--push --platform linux/amd64,linux/arm64 \

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,12 @@ actions/{category}/{action-name}/
113113
#### Linting & Testing
114114

115115
```bash
116+
make ci # Run all CI checks
117+
118+
# Linting helpers
116119
make lint # Run the dockerized Super Linter
117120
make lint-fix # Attempt auto-fixes for lint findings
121+
make npm-audit-fix # Fix npm audit issues in action packages
118122

119123
# Container & Helm validation helpers
120124
make test-build-application # Build and push the sample test application image

actions/helm/generate-docs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ runs:
138138
- if: ${{ steps.prepare-variables.outputs.values-file }}
139139
uses: losisin/helm-values-schema-json-action@f3517c55537e26953c8a11be7549ea908990130d # v2.3.2
140140
with:
141-
input: ${{ steps.prepare-variables.outputs.values-file }}
141+
values: ${{ steps.prepare-variables.outputs.values-file }}
142142
working-directory: ${{ steps.prepare-variables.outputs.working-directory }}
143143

144144
- name: Setup Node.js

actions/helm/generate-docs/package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/helm/generate-docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"name": "generate-docs",
23
"dependencies": {
34
"@textlint/textlint-plugin-markdown": "^15.5.0",
45
"markdownlint-cli2": "^0.20.0",

actions/helm/release-chart/action.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,15 @@ runs:
187187
cmd: |
188188
${{ steps.chart-values-updates.outputs.yq-command }}
189189
190-
- uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
191-
192-
- shell: bash
193-
run: npm install yaml
190+
- name: Setup Node.js
191+
uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@c9d9d041ba4ef35695ee469c4782fa6a8bbebbcc # 0.21.2
192+
with:
193+
working-directory: ${{ github.action_path }}
194194

195195
- name: Rewrite the Chart.lock to match with updated ombrella dependencies if any
196196
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
197+
env:
198+
NODE_PATH: ${{ github.action_path }}/node_modules
197199
with:
198200
script: |
199201
const fs = require('node:fs');

actions/helm/release-chart/package-lock.json

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "release-chart",
3+
"dependencies": {
4+
"yaml": "^2.8.2"
5+
}
6+
}

0 commit comments

Comments
 (0)