-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): pin third-party actions to full commit SHAs #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # This workflow is managed by gh actions-lock. | ||
| # This workflow is managed by gh actions-lock. | ||
|
|
@@ -30,17 +30,19 @@ | |
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| rust: [stable] | ||
| steps: | ||
| - uses: actions/checkout@v7.0.1 | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@v1 | ||
| uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1 | ||
| with: | ||
| toolchain: v1 | ||
| with: | ||
| toolchain: ${{ matrix.rust }} | ||
| components: rustfmt, clippy | ||
| targets: wasm32-unknown-unknown | ||
|
|
||
| - name: Cache Cargo | ||
| uses: actions/cache@v6.1.0 | ||
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
|
|
@@ -73,10 +75,10 @@ | |
| os: [ubuntu-latest, macos-latest, windows-latest] | ||
| node: [18, 20] | ||
| steps: | ||
| - uses: actions/checkout@v7.0.1 | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v7.0.0 | ||
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
| with: | ||
| node-version: ${{ matrix.node }} | ||
| cache: 'npm' | ||
|
|
@@ -95,7 +97,7 @@ | |
|
|
||
| - name: Upload Coverage | ||
| if: matrix.os == 'ubuntu-latest' && matrix.node == 20 | ||
| uses: codecov/codecov-action@v7.0.0 | ||
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | ||
| with: | ||
| files: ./coverage/lcov.info | ||
| flags: typescript | ||
|
|
@@ -107,18 +109,18 @@ | |
| runs-on: ubuntu-latest | ||
| needs: [rust-test, typescript-test] | ||
| steps: | ||
| - uses: actions/checkout@v7.0.1 | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@v1 | ||
| uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🔴 Critical | ⚡ Quick win Provide The Rust actions at these locations omit Also applies to: 160-160, 251-251, 303-303 🤖 Prompt for AI AgentsSource: MCP tools |
||
| with: | ||
| targets: wasm32-unknown-unknown | ||
|
|
||
| - name: Install wasm-pack | ||
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v7.0.0 | ||
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
| with: | ||
| node-version: 20 | ||
| cache: 'npm' | ||
|
|
@@ -141,7 +143,7 @@ | |
| test -f dist/popup.html | ||
|
|
||
| - name: Upload Build Artifact | ||
| uses: actions/upload-artifact@v7.0.1 | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: extension-build-${{ github.sha }} | ||
| path: dist/ | ||
|
|
@@ -152,10 +154,10 @@ | |
| name: Security Audit | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7.0.1 | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@v1 | ||
| uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1 | ||
|
|
||
| - name: Cargo Audit | ||
| working-directory: rust_core | ||
|
|
@@ -164,7 +166,7 @@ | |
| cargo audit | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v7.0.0 | ||
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
| with: | ||
| node-version: 20 | ||
| cache: 'npm' | ||
|
|
@@ -179,7 +181,7 @@ | |
| name: RSR Compliance Check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7.0.1 | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Check Documentation | ||
| run: | | ||
|
|
@@ -227,7 +229,7 @@ | |
| echo "✅ All RSR requirements met" >> compliance-report.md | ||
|
|
||
| - name: Upload Compliance Report | ||
| uses: actions/upload-artifact@v7.0.1 | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: rsr-compliance-report | ||
| path: compliance-report.md | ||
|
|
@@ -243,18 +245,18 @@ | |
| id-token: write | ||
| attestations: write | ||
| steps: | ||
| - uses: actions/checkout@v7.0.1 | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@v1 | ||
| uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1 | ||
| with: | ||
| targets: wasm32-unknown-unknown | ||
|
|
||
| - name: Install wasm-pack | ||
| run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v7.0.0 | ||
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
| with: | ||
| node-version: 20 | ||
| cache: 'npm' | ||
|
|
@@ -274,7 +276,7 @@ | |
| cd .. | ||
|
|
||
| - name: Create Release | ||
| uses: softprops/action-gh-release@v3.0.2 | ||
| uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3.0.2 | ||
| with: | ||
| files: | | ||
| doubletrack-browser-${{ github.ref_name }}.zip | ||
|
|
@@ -284,7 +286,7 @@ | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Attest build provenance | ||
| uses: actions/attest-build-provenance@v4.2.2 | ||
| uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2 | ||
| with: | ||
| subject-path: | | ||
| doubletrack-browser-${{ github.ref_name }}.zip | ||
|
|
@@ -295,10 +297,10 @@ | |
| runs-on: ubuntu-latest | ||
| needs: [rust-test, typescript-test] | ||
| steps: | ||
| - uses: actions/checkout@v7.0.1 | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@v1 | ||
| uses: dtolnay/rust-toolchain@02cb101ec7c40f2c49e1d9714d64511d8e1b74de # v1 | ||
| with: | ||
| components: llvm-tools-preview | ||
|
|
||
|
|
@@ -310,7 +312,7 @@ | |
| run: cargo tarpaulin --out Xml --output-dir ../coverage | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v7.0.0 | ||
| uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 | ||
| with: | ||
| node-version: 20 | ||
| cache: 'npm' | ||
|
|
@@ -322,7 +324,7 @@ | |
| run: npm test -- --coverage | ||
|
|
||
| - name: Upload to Codecov | ||
| uses: codecov/codecov-action@v7.0.0 | ||
| uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 | ||
| with: | ||
| files: ./coverage/cobertura-coverage.xml,./coverage/lcov.info | ||
| flags: unittests | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ jobs: | |
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v7.0.1 | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: sed -n '1,60p' .github/workflows/actions.lock
sed -n '100,170p' .github/workflows/actions.lock
sed -n '1,80p' .github/workflows/workflow-linter.yml
grep -rn "actions-lock\|Invalid lockfile\|actions.lock" .github --include=*.yml --include=*.md | head -50Repository: hyperpolymath/double-track-browser Length of output: 9428 🏁 Script executed: set -eu
printf '%s\n' '--- .github/dependabot.yml ---'
sed -n '20,38p' .github/dependabot.yml
printf '%s\n' '--- .github/workflows/labels.yml ---'
sed -n '1,55p' .github/workflows/labels.yml
printf '%s\n' '--- workflow diff (zero context) ---'
git diff --unified=0 -- .github/workflowsRepository: hyperpolymath/double-track-browser Length of output: 3283 Regenerate the lock entries for the dogfood validators. The validator SHAs differ from the commits recorded in The checkout, repository-dispatch, and setup-deno pins match the lock and do not need changes. 🧰 Tools🪛 zizmor (1.30.0)[warning] 30-31: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) 🤖 Prompt for AI Agents |
||
|
|
||
| - name: Check for A2ML files | ||
| id: detect | ||
|
|
@@ -41,7 +41,7 @@ jobs: | |
|
|
||
| - name: Validate A2ML manifests | ||
| if: steps.detect.outputs.count > 0 | ||
| uses: hyperpolymath/a2ml-ecosystem/validate-action@main | ||
| uses: hyperpolymath/a2ml-ecosystem/validate-action@ed83d6927e8fb21431e403dbf6d7a4af96772746 # main | ||
| with: | ||
| path: '.' | ||
| strict: 'false' | ||
|
|
@@ -72,7 +72,7 @@ jobs: | |
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v7.0.1 | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Check for K9 files | ||
| id: detect | ||
|
|
@@ -89,7 +89,7 @@ jobs: | |
|
|
||
| - name: Validate K9 contracts | ||
| if: steps.detect.outputs.k9_count > 0 | ||
| uses: hyperpolymath/k9-ecosystem/validate-action@main | ||
| uses: hyperpolymath/k9-ecosystem/validate-action@c1a34884054fabf0e9de81dbf68f4ba7874e85f1 # main | ||
| with: | ||
| path: '.' | ||
| strict: 'false' | ||
|
|
@@ -121,7 +121,7 @@ jobs: | |
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v7.0.1 | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Scan for invisible characters | ||
| id: lint | ||
|
|
@@ -202,7 +202,7 @@ jobs: | |
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v7.0.1 | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Check for Groove manifest | ||
| id: groove | ||
|
|
@@ -262,7 +262,7 @@ jobs: | |
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v7.0.1 | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Generate dogfooding scorecard | ||
| run: | | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🔴 Critical | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/double-track-browser
Length of output: 2597
Remove the duplicate
withmapping.The
Install Ruststep defineswithtwice. Remove thetoolchain: v1mapping and retain the matrix toolchain mapping:Duplicate mapping keys violate the YAML mapping contract and prevent the workflow from loading correctly.
🧰 Tools
🪛 YAMLlint (1.37.1)
[error] 39-39: duplication of key "with" in mapping
(key-duplicates)
🤖 Prompt for AI Agents