diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16d6115..11fe310 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,12 +22,12 @@ jobs: node: [20, 24] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 + - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 - name: Use Node.js ${{ matrix.node }} - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: ${{ matrix.node }} cache: pnpm @@ -70,13 +70,13 @@ jobs: if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 + - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 - - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + - uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: 24 cache: pnpm diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 814f26d..f62dd69 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -21,16 +21,16 @@ jobs: contents: read security-events: write steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - name: Initialize CodeQL - uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 + uses: github/codeql-action/init@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7 with: languages: javascript-typescript build-mode: none queries: security-extended - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 + uses: github/codeql-action/analyze@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7 with: category: '/language:javascript-typescript' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 573d3e4..87c2fb5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,14 +39,14 @@ jobs: pull-requests: write # open/update the Version Packages PR id-token: write # npm Trusted Publishing (OIDC) + provenance steps: - - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - - uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9 + - uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10 - name: Use Node.js - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 + uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: '24' registry-url: 'https://registry.npmjs.org' @@ -69,17 +69,17 @@ jobs: run: pnpm -r test # Opens/updates the "Version Packages" PR when changesets are pending. - # No `publish` input: the actual publish stays on the explicit `npm stage` - # step below so we control staging + the OIDC/provenance flags. + # No `publish-script` input: the actual publish stays on the explicit + # `npm stage` step below so we control staging + the OIDC/provenance flags. + # Auth uses the action's `github-token` input default (github.token) -- + # v2 no longer reads the GITHUB_TOKEN env var. - name: Create or update the Version Packages PR id: changesets - uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d # v1.9.0 + uses: changesets/action@198f833dd7d863100ea6e28967bc9a9fdefadb0a # v2.1.0 with: - version: pnpm changeset version - commit: 'chore: version packages' - title: 'chore: version packages' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + version-script: pnpm changeset version + commit-message: 'chore: version packages' + pr-title: 'chore: version packages' # Stage only after the Version PR has merged (no pending changesets). # During the run that merely opens the Version PR, changesets/action has @@ -89,7 +89,7 @@ jobs: # @simplyforms/sdk has no workspace dependencies, so `npm stage publish` # stages the package directory as-is (no `workspace:*` rewrite, no pack). - name: Stage @simplyforms/sdk - if: steps.changesets.outputs.hasChangesets == 'false' + if: steps.changesets.outputs['has-changesets'] == 'false' working-directory: packages/sdk run: | VERSION=$(node -p "require('./package.json').version") @@ -108,7 +108,7 @@ jobs: # CycloneDX SBOM attached. Idempotent -- the tag-existence check makes # re-runs no-ops. - name: Tag and release with SBOM - if: steps.changesets.outputs.hasChangesets == 'false' + if: steps.changesets.outputs['has-changesets'] == 'false' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml index 7d66f92..434d485 100644 --- a/.github/workflows/scorecard.yml +++ b/.github/workflows/scorecard.yml @@ -18,12 +18,12 @@ jobs: id-token: write # publish results to the OpenSSF API steps: - name: Checkout - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Run analysis - uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3 + uses: ossf/scorecard-action@2d1146689b8cda280b9bc96326124645441f03bc # v2.4.4 with: results_file: results.sarif results_format: sarif @@ -34,7 +34,7 @@ jobs: publish_results: true - name: Upload SARIF to code scanning - uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2 + uses: github/codeql-action/upload-sarif@ff2f1c621b7f889edc0d3c761ac2e6a3f8cdb0dd # v4.37.7 with: sarif_file: results.sarif