diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e388a0a6..c8252725 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -588,7 +588,7 @@ jobs: persist-credentials: false - name: Download image artifacts - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: ${{ matrix.image }} merge-multiple: true @@ -596,7 +596,7 @@ jobs: - name: Download the next image set if: needs.changes.outputs.release != 'true' && matrix.next != '' - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: ${{ matrix.next }} merge-multiple: true @@ -604,14 +604,14 @@ jobs: - name: Download the broken image set if: needs.changes.outputs.release != 'true' && matrix.broken - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: image-broken path: dist/diskless-broken - name: Download the Ignition test config signatures if: needs.changes.outputs.release != 'true' && matrix.sigs - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: ignition-sigs path: dist/ignition-sigs @@ -690,7 +690,7 @@ jobs: # Every part of the image set, merged back into the set as built. - name: Download image artifacts - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: image-set-* merge-multiple: true @@ -777,14 +777,14 @@ jobs: # Every part of the image set, merged back into the set as built. - name: Download image artifacts - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: image-set-* merge-multiple: true path: dist/diskless - name: Download the size report - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: image-size path: dist/diskless @@ -891,7 +891,7 @@ jobs: # Every part of the image set, merged back into the set as built. - name: Download image artifacts - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: pattern: image-set-* merge-multiple: true @@ -900,7 +900,7 @@ jobs: # Only image-check's success uploads it; the rehearsal runs either way. - name: Download the size report if: needs.image-check.result == 'success' - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: name: image-size path: dist/diskless diff --git a/.github/workflows/docs-checks.yml b/.github/workflows/docs-checks.yml index 2054d75a..901ac9d4 100644 --- a/.github/workflows/docs-checks.yml +++ b/.github/workflows/docs-checks.yml @@ -23,7 +23,7 @@ jobs: persist-credentials: false - name: Set up Python - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: '3.15' diff --git a/.github/workflows/track-binaries.yml b/.github/workflows/track-binaries.yml index 608ccd92..f2b3da31 100644 --- a/.github/workflows/track-binaries.yml +++ b/.github/workflows/track-binaries.yml @@ -87,7 +87,7 @@ jobs: # which downloads upstream assets; it is never written to .git/config. - name: Get mergeraptor token id: app-token - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3 + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 with: app-id: ${{ secrets.MERGERAPTOR_APP_ID }} private-key: ${{ secrets.MERGERAPTOR_PRIVATE_KEY }} diff --git a/.github/workflows/track-junctions.yml b/.github/workflows/track-junctions.yml index 8c944c01..2ae4a97f 100644 --- a/.github/workflows/track-junctions.yml +++ b/.github/workflows/track-junctions.yml @@ -70,7 +70,7 @@ jobs: # never written to .git/config. - name: Get mergeraptor token id: app-token - uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3 + uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0 with: app-id: ${{ secrets.MERGERAPTOR_APP_ID }} private-key: ${{ secrets.MERGERAPTOR_PRIVATE_KEY }} diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 77448661..9a6d6107 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -24,7 +24,7 @@ jobs: persist-credentials: false - name: Set up Python - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7 + uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 with: python-version: '3.15' diff --git a/docs/skills/ci-tooling.md b/docs/skills/ci-tooling.md index 14dc1e5f..5a2380ee 100644 --- a/docs/skills/ci-tooling.md +++ b/docs/skills/ci-tooling.md @@ -26,19 +26,19 @@ metadata: ### Action pins — always use SHA, never mutable tags -Every `uses:` line must reference a full commit SHA. Never use `@v2` or `@main`. +Every `uses:` line must reference a full commit SHA, with its exact release tag +in the comment (not a moving major tag). The online workflow audit checks both. ```yaml # correct (see build.yml for the current pinned SHA) -- uses: taiki-e/install-action@ # v2 +- uses: taiki-e/install-action@ # v2.90.1 # wrong — mutable tag, supply-chain risk - uses: taiki-e/install-action@v2 ``` -Check `.github/workflows/build.yml` (and sibling repos such as -`projectbluefin/dakota` and `projectbluefin/common`) for the current pinned SHA -before adding an action. +Check `.github/workflows/build.yml` (and sibling repos `projectbluefin/dakota` +and `projectbluefin/common`) for the current pinned SHA before adding an action. ### Installing `just` — taiki-e/install-action, not snap/cargo/apt @@ -48,7 +48,7 @@ Pin the tool version too, not only the action SHA. Without `@`, a binary chosen by an upstream release rather than by a commit in this repo. ```yaml -- uses: taiki-e/install-action@ # v2 — see build.yml for the current pin +- uses: taiki-e/install-action@ # v2.90.1 — see build.yml for the current pin with: tool: just@ # the version every other call site uses ```