Skip to content

Commit a1bf6a8

Browse files
fix: vulnerability-in-rust-rustls-webpki (#54)
1 parent 8eabd86 commit a1bf6a8

30 files changed

Lines changed: 949 additions & 791 deletions

.github/workflows/publish-sls-plugin.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@ jobs:
1010
publish:
1111
name: Publish to npm
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write # REQUIRED to push the release tag
15+
id-token: write # REQUIRED for OIDC / trusted publishing
1316
if: github.ref == 'refs/heads/master'
1417
steps:
1518
- uses: actions/checkout@v4
1619
- uses: actions/setup-node@v4
1720
with:
18-
node-version: '20'
21+
node-version: '24'
1922
registry-url: 'https://registry.npmjs.org'
2023
- name: Read version from package.json
2124
id: version
2225
working-directory: sls-plugin
23-
run: echo "version=$(node -p 'require(\"./package.json\").version')" >> "$GITHUB_OUTPUT"
26+
run: |
27+
version=$(node -p "require('./package.json').version")
28+
echo "version=$version" >> "$GITHUB_OUTPUT"
2429
- name: Fail if tag already exists
2530
run: |
2631
if git rev-parse "sls-plugin-v${{ steps.version.outputs.version }}" >/dev/null 2>&1; then
@@ -39,8 +44,6 @@ jobs:
3944
- name: Publish to npm
4045
working-directory: sls-plugin
4146
run: npm publish --access public
42-
env:
43-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4447
- name: Tag release
4548
run: |
4649
git tag "sls-plugin-v${{ steps.version.outputs.version }}"

0 commit comments

Comments
 (0)