diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..60ace0e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +# Workflow actions are pinned to commit SHAs; this keeps the pins (and their version comments) current. +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ef52bd..ec9fbab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,8 +18,8 @@ jobs: node: [22, 24] # engines floor (22.13+) and latest name: node ${{ matrix.node }} steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: ${{ matrix.node }} cache: npm diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1905e8..089f9ec 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,7 @@ jobs: tag: ${{ steps.version.outputs.tag }} should_release: ${{ steps.version.outputs.should_release }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - id: version name: Resolve version and decide whether to release run: | @@ -58,11 +58,12 @@ jobs: contents: read id-token: write # npm provenance (OIDC), no long-lived NPM_TOKEN steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 24 - cache: npm + # No dependency cache in the publish job: a poisoned cache could reach the OIDC token. + package-manager-cache: false registry-url: https://registry.npmjs.org - run: npm ci - run: npm run lint @@ -82,7 +83,7 @@ jobs: permissions: contents: write # create the tag and GitHub Release steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Create GitHub Release (skipped if it already exists) run: | if gh release view "$TAG" > /dev/null 2>&1; then