Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
fi
echo "distribution=$distribution" >> "$GITHUB_OUTPUT"
- name: Install pinned prebuilt cargo-audit
uses: taiki-e/install-action@5bf6ce016fd2e72eefc647cbca1e4213f65955b8 # v2.87.5
uses: taiki-e/install-action@f7e5d7c961414b23f5b25b2da9294395d08513ad # v2.87.26
with:
tool: cargo-audit@${{ env.CARGO_AUDIT_VERSION }}
fallback: none
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
cp target/debug/hardgate target/release/hardgate
- id: upload_native
name: Upload the shared native release binary
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: native-linux-x64-attempt-${{ github.run_attempt }}
path: target/release/hardgate
Expand All @@ -122,7 +122,7 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- uses: dtolnay/rust-toolchain@d1031067263f94b142dd6c0ce24c5eb9d02d52a0 # master
Expand All @@ -144,7 +144,7 @@ jobs:
SOURCE_DATE_EPOCH: 0
- name: Install packed npm binaries and exercise local analysis without Rust
run: node tests/native_installation.test.mjs target/${{ matrix.target }}/release/${{ matrix.binary }}
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: binary-${{ matrix.target }}-attempt-${{ github.run_attempt }}
path: target/${{ matrix.target }}/release/${{ matrix.binary }}
Expand All @@ -160,7 +160,7 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install --global "npm@${NPM_VERSION}"
Expand All @@ -173,7 +173,7 @@ jobs:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy
- name: Download the shared native release binary
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.rust.outputs.native_artifact_id }}
path: target/release
Expand Down Expand Up @@ -211,11 +211,11 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_MIN_VERSION }}
- name: Download the shared native release binary
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.rust.outputs.native_artifact_id }}
path: target/release
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: node --check scripts/verify-repository-rules.mjs
Expand All @@ -259,7 +259,7 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install --global "npm@${NPM_VERSION}"
Expand All @@ -276,12 +276,12 @@ jobs:
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy, llvm-tools-preview
- name: Install pinned prebuilt cargo-llvm-cov
uses: taiki-e/install-action@5bf6ce016fd2e72eefc647cbca1e4213f65955b8 # v2.87.5
uses: taiki-e/install-action@f7e5d7c961414b23f5b25b2da9294395d08513ad # v2.87.26
with:
tool: cargo-llvm-cov@${{ env.CARGO_LLVM_COV_VERSION }}
fallback: none
- name: Download the shared native release binary
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.rust.outputs.native_artifact_id }}
path: target/release
Expand All @@ -292,15 +292,15 @@ jobs:
sudo systemctl start "user@$(id -u).service"
- run: chmod 755 target/release/hardgate
- name: Install pinned cargo-mutants specialist
uses: taiki-e/install-action@5bf6ce016fd2e72eefc647cbca1e4213f65955b8 # v2.87.5
uses: taiki-e/install-action@f7e5d7c961414b23f5b25b2da9294395d08513ad # v2.87.26
with:
tool: cargo-mutants@${{ env.CARGO_MUTANTS_VERSION }}
fallback: none
- name: Run complete configured static/orchestration/evidence gate
run: scripts/self-gate.sh
- name: Preserve evidence for coverage diagnosis
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: self-evidence-attempt-${{ github.run_attempt }}
path: .hardgate/evidence/
Expand All @@ -317,7 +317,7 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- if: needs.rust.outputs.distribution == 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
ref: main
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 26.8.1
registry-url: https://npm.pkg.github.com
Expand Down
58 changes: 29 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
ref: ${{ inputs.tag || github.ref }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- id: version
Expand Down Expand Up @@ -309,7 +309,7 @@ jobs:
path: release-tooling
fetch-depth: 1
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install --global "npm@${NPM_VERSION}"
Expand All @@ -327,7 +327,7 @@ jobs:
sudo systemctl start "user@$(id -u).service"
- if: needs.version-check.outputs.resume != 'true'
name: Download the native binary verified by main CI
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.version-check.outputs.ci_native_artifact_id }}
github-token: ${{ github.token }}
Expand All @@ -340,7 +340,7 @@ jobs:
# successful CI run and are rechecked for target/source identity below.
- if: needs.version-check.outputs.resume != 'true'
name: Download native local-analysis binaries verified by main CI
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: binary-*
github-token: ${{ github.token }}
Expand All @@ -353,7 +353,7 @@ jobs:
run: chmod 755 build-binaries/binary-x86_64-unknown-linux-gnu/hardgate
- if: needs.version-check.outputs.resume == 'true'
name: Download the previously verified release bundle
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.version-check.outputs.resume_artifact_id }}
github-token: ${{ github.token }}
Expand Down Expand Up @@ -412,7 +412,7 @@ jobs:
--packages-dir "$packed_root/packages" --binary "$binary" --version "$RELEASE_VERSION"
- id: upload_bundle
name: Upload verified release bundle
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-bundle
path: dist/*
Expand Down Expand Up @@ -445,7 +445,7 @@ jobs:
path: release-tooling
fetch-depth: 1
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org
Expand All @@ -458,7 +458,7 @@ jobs:
run: |
sudo loginctl enable-linger "$(id -un)"
sudo systemctl start "user@$(id -u).service"
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.package.outputs.bundle_artifact_id }}
path: dist
Expand Down Expand Up @@ -782,7 +782,7 @@ jobs:
- id: upload_receipt
name: Retain the publication receipt
if: always() && hashFiles('receipt/release.json') != ''
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-receipt-publication-attempt-${{ github.run_attempt }}
path: receipt/release.json
Expand All @@ -809,10 +809,10 @@ jobs:
ref: ${{ github.sha }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.package.outputs.bundle_artifact_id }}
path: dist
Expand All @@ -828,7 +828,7 @@ jobs:
--source-sha "$RELEASE_COMMIT" --archive 'dist/${{ matrix.package }}.tar.gz' \
--mode exact --output '${{ matrix.package }}.json' \
--wrapper-source "$RUNNER_TEMP/release-launcher.js"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: portable-exact-${{ matrix.package }}-attempt-${{ github.run_attempt }}
path: ${{ matrix.package }}.json
Expand Down Expand Up @@ -861,7 +861,7 @@ jobs:
path: release-tooling
fetch-depth: 1
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install --global "npm@${NPM_VERSION}"
Expand All @@ -877,12 +877,12 @@ jobs:
run: |
sudo loginctl enable-linger "$(id -un)"
sudo systemctl start "user@$(id -u).service"
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.package.outputs.bundle_artifact_id }}
path: dist
digest-mismatch: error
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.publish.outputs.receipt_artifact_id }}
path: receipt
Expand Down Expand Up @@ -923,7 +923,7 @@ jobs:
- name: Apply native proof to the release receipt
run: node release-tooling/scripts/apply-native-receipt.mjs --receipt receipt/release.json --proof native-proof.json
- name: Download successful native platform proofs
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: portable-exact-*-attempt-*
path: portable-proofs
Expand All @@ -945,7 +945,7 @@ jobs:
- id: upload_receipt
name: Retain the exact receipt
if: always() && hashFiles('receipt/release.json') != ''
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-receipt-exact-attempt-${{ github.run_attempt }}
path: receipt/release.json
Expand Down Expand Up @@ -980,19 +980,19 @@ jobs:
path: release-tooling
fetch-depth: 1
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install --global "npm@${NPM_VERSION}"
- uses: dtolnay/rust-toolchain@d1031067263f94b142dd6c0ce24c5eb9d02d52a0 # master, Rust 1.98.1
with:
toolchain: ${{ env.RUST_TOOLCHAIN }}
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.package.outputs.bundle_artifact_id }}
path: dist
digest-mismatch: error
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.verify-exact.outputs.receipt_artifact_id }}
path: receipt
Expand Down Expand Up @@ -1038,7 +1038,7 @@ jobs:
- id: upload_receipt
name: Retain the promotion receipt
if: always() && hashFiles('receipt/release.json') != ''
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-receipt-promoted-attempt-${{ github.run_attempt }}
path: receipt/release.json
Expand All @@ -1065,10 +1065,10 @@ jobs:
ref: ${{ github.sha }}
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.package.outputs.bundle_artifact_id }}
path: dist
Expand All @@ -1084,7 +1084,7 @@ jobs:
--source-sha "$RELEASE_COMMIT" --archive 'dist/${{ matrix.package }}.tar.gz' \
--mode default --output '${{ matrix.package }}.json' \
--wrapper-source "$RUNNER_TEMP/release-launcher.js"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: portable-default-${{ matrix.package }}-attempt-${{ github.run_attempt }}
path: ${{ matrix.package }}.json
Expand Down Expand Up @@ -1117,7 +1117,7 @@ jobs:
path: release-tooling
fetch-depth: 1
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm install --global "npm@${NPM_VERSION}"
Expand All @@ -1133,12 +1133,12 @@ jobs:
run: |
sudo loginctl enable-linger "$(id -un)"
sudo systemctl start "user@$(id -u).service"
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.package.outputs.bundle_artifact_id }}
path: dist
digest-mismatch: error
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
artifact-ids: ${{ needs.promote-channels.outputs.receipt_artifact_id }}
path: receipt
Expand Down Expand Up @@ -1218,7 +1218,7 @@ jobs:
- name: Apply native proof to the release receipt
run: node release-tooling/scripts/apply-native-receipt.mjs --receipt receipt/release.json --proof native-proof.json
- name: Download successful native platform proofs
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
pattern: portable-default-*-attempt-*
path: portable-proofs
Expand Down Expand Up @@ -1283,7 +1283,7 @@ jobs:
- id: upload_receipt
name: Retain the final receipt
if: always() && hashFiles('receipt/release.json') != ''
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: release-receipt-final-attempt-${{ github.run_attempt }}
path: receipt/release.json
Expand Down
Loading