-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): unbreak workflow YAML and add a complete actions.lock #43
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 |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| # This file is machine-generated by `gh actions-lock`. | ||
| # Do not edit by hand; run `gh actions-lock` to update. | ||
| # Docs: https://gh.io/actions-lockfile | ||
| version: 'v0.0.2' | ||
| workflows: | ||
| '.github/workflows/forge-mirror.yml': [] | ||
| '.github/workflows/governance-gate.yml': [] | ||
| '.github/workflows/governance.yml': [] | ||
| '.github/workflows/hypatia-scan.yml': [] | ||
| '.github/workflows/boj-build.yml': | ||
| - 'actions/checkout@v6.0.2' | ||
| '.github/workflows/casket-pages.yml': | ||
| - 'actions/cache@v4.3.0' | ||
| - 'actions/checkout@v4.1.1' | ||
| - 'actions/configure-pages@v5.0.0' | ||
| - 'actions/deploy-pages@v4.0.5' | ||
| - 'actions/upload-pages-artifact@v3.0.1' | ||
| - 'haskell-actions/setup@v2.7.5' | ||
| '.github/workflows/ci.yml': | ||
| - 'actions/checkout@v6.0.2' | ||
| - 'denoland/setup-deno@v2.0.4' | ||
| '.github/workflows/codeql.yml': | ||
| - 'actions/checkout@v4.1.1' | ||
| - 'github/codeql-action@v3.37.3' | ||
| '.github/workflows/instant-sync-dispatch.yml': | ||
| - 'peter-evans/repository-dispatch@v4.0.1' | ||
| '.github/workflows/push-email-notify.yml': | ||
| - 'dawidd6/action-send-mail@v3.12.0' | ||
| '.github/workflows/secret-scan.yml': | ||
| - 'actions/checkout@v4.4.0' | ||
| - 'trufflesecurity/trufflehog@main' | ||
| dependencies: | ||
| 'actions/cache@v4.3.0': | ||
| ref: 'v4.3.0' | ||
| commit: 'sha1-0057852bfaa89a56745cba8c7296529d2fc39830' | ||
| owner_id: 44036562 | ||
| repo_id: 215566462 | ||
| 'actions/checkout@v4.1.1': | ||
| ref: 'v4.1.1' | ||
| commit: 'sha1-b4ffde65f46336ab88eb53be808477a3936bae11' | ||
| owner_id: 44036562 | ||
| repo_id: 197814629 | ||
| 'actions/checkout@v4.4.0': | ||
| ref: 'v4.4.0' | ||
| commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262' | ||
| owner_id: 44036562 | ||
| repo_id: 197814629 | ||
| 'actions/checkout@v6.0.2': | ||
| ref: 'v6.0.2' | ||
| commit: 'sha1-de0fac2e4500dabe0009e67214ff5f5447ce83dd' | ||
| owner_id: 44036562 | ||
| repo_id: 197814629 | ||
| 'actions/configure-pages@v5.0.0': | ||
| ref: 'v5.0.0' | ||
| commit: 'sha1-983d7736d9b0ae728b81ab479565c72886d7745b' | ||
| owner_id: 44036562 | ||
| repo_id: 513659658 | ||
| 'actions/deploy-pages@v4.0.5': | ||
| ref: 'v4.0.5' | ||
| commit: 'sha1-d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e' | ||
| owner_id: 44036562 | ||
| repo_id: 438112499 | ||
| 'actions/upload-artifact@v4': | ||
| ref: 'v4' | ||
| commit: 'sha1-ea165f8d65b6e75b540449e92b4886f43607fa02' | ||
| owner_id: 44036562 | ||
| repo_id: 192625955 | ||
| 'actions/upload-pages-artifact@v3.0.1': | ||
| ref: 'v3.0.1' | ||
| commit: 'sha1-56afc609e74202658d3ffba0e8f6dda462b719fa' | ||
| owner_id: 44036562 | ||
| repo_id: 496012378 | ||
| uses: | ||
| - 'actions/upload-artifact@v4' | ||
| 'dawidd6/action-send-mail@v3.12.0': | ||
| ref: 'v3.12.0' | ||
| commit: 'sha1-6e502825a508b867ab2954ad6343b68787624c01' | ||
| owner_id: 9713907 | ||
| repo_id: 222439721 | ||
| 'denoland/setup-deno@v2.0.4': | ||
| ref: 'v2.0.4' | ||
| commit: 'sha1-667a34cdef165d8d2b2e98dde39547c9daac7282' | ||
| owner_id: 42048915 | ||
| repo_id: 356423100 | ||
| 'github/codeql-action@v3.37.3': | ||
| ref: 'v3.37.3' | ||
| commit: 'sha1-4187e74d05793876e9989daffde9c3e66b4acd07' | ||
| owner_id: 9919 | ||
| repo_id: 259445878 | ||
| 'haskell-actions/setup@v2.7.5': | ||
| ref: 'v2.7.5' | ||
| commit: 'sha1-ec49483bfc012387b227434aba94f59a6ecd0900' | ||
| owner_id: 75048950 | ||
| repo_id: 623796603 | ||
| 'peter-evans/repository-dispatch@v4.0.1': | ||
| ref: 'v4.0.1' | ||
| commit: 'sha1-28959ce8df70de7be546dd1250a005dd32156697' | ||
| owner_id: 18365890 | ||
| repo_id: 220359305 | ||
| 'trufflesecurity/trufflehog@main': | ||
| ref: 'main' | ||
| commit: 'sha1-1ea7fc1960b818e3c3ac3984f85922e3acba4061' | ||
| owner_id: 79229934 | ||
| repo_id: 77726177 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # This workflow is managed by gh actions-lock. | ||
| name: GitHub Pages | ||
| on: | ||
| push: | ||
|
|
@@ -18,19 +19,19 @@ | |
| timeout-minutes: 15 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4.1.1 | ||
| - name: Checkout casket-ssg | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| uses: actions/checkout@v4.1.1 | ||
| with: | ||
| repository: hyperpolymath/casket-ssg | ||
| path: .casket-ssg | ||
| - name: Setup GHCup | ||
| uses: haskell-actions/setup@ec49483bfc012387b227434aba94f59a6ecd0900 # v2 | ||
| uses: haskell-actions/setup@v2.7.5 | ||
|
Check failure on line 29 in .github/workflows/casket-pages.yml
|
||
|
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. 🔴 HIGH RISK Using a version tag for environment setup is a security risk. Pin to the specific commit SHA to ensure build reproducibility and security. |
||
| with: | ||
| ghc-version: '9.8.2' | ||
| cabal-version: '3.10' | ||
| - name: Cache Cabal | ||
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | ||
| uses: actions/cache@v4.3.0 | ||
| with: | ||
| path: | | ||
| ~/.cabal/packages | ||
|
|
@@ -88,9 +89,9 @@ | |
| cd .casket-ssg && cabal run casket-ssg -- build ../.site-src ../_site | ||
| touch ../_site/.nojekyll | ||
| - name: Setup Pages | ||
| uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5 | ||
| uses: actions/configure-pages@v5.0.0 | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 | ||
| uses: actions/upload-pages-artifact@v3.0.1 | ||
| with: | ||
| path: '_site' | ||
| deploy: | ||
|
|
@@ -103,4 +104,4 @@ | |
| steps: | ||
| - name: Deploy to GitHub Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4 | ||
| uses: actions/deploy-pages@v4.0.5 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # This workflow is managed by gh actions-lock. | ||
| name: CI | ||
| on: | ||
| pull_request: | ||
|
|
@@ -16,8 +17,8 @@ | |
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| - uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 # v2.0.4 | ||
| - uses: actions/checkout@v6.0.2 | ||
| - uses: denoland/setup-deno@v2.0.4 | ||
|
Check failure on line 21 in .github/workflows/ci.yml
|
||
|
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. 🔴 HIGH RISK Pinning to a version tag is less secure than pinning to a full commit SHA. To maintain the highest security posture, use the specific 40-character commit SHA for this action. |
||
| with: | ||
| deno-version: v2.x | ||
| - name: Format check (engine) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # This workflow is managed by gh actions-lock. | ||
| # Instant Forge Sync - Triggers propagation to all forges on push/release | ||
| name: Instant Sync | ||
|
|
||
|
|
@@ -18,7 +19,7 @@ | |
| timeout-minutes: 15 | ||
| steps: | ||
| - name: Trigger Propagation | ||
| uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v3 | ||
| uses: peter-evans/repository-dispatch@v4.0.1 | ||
|
Check failure on line 22 in .github/workflows/instant-sync-dispatch.yml
|
||
|
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. 🔴 HIGH RISK For actions handling sensitive tokens, it is critical to use an immutable commit SHA instead of a version tag to prevent potential interception or misuse. |
||
| with: | ||
| token: ${{ secrets.FARM_DISPATCH_TOKEN }} | ||
| repository: hyperpolymath/.git-private-farm | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # This workflow is managed by gh actions-lock. | ||
| # Dormant push-email notification. ARMED by setting the repo variable | ||
| # PUSH_EMAIL_ENABLED=true (the single on/off switch). Addresses are pre-filled; | ||
| # sending needs the org SMTP secrets (SMTP_HOST/PORT/USER/PASS). Inherited by | ||
|
|
@@ -16,7 +17,7 @@ | |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Send push notification email | ||
| uses: dawidd6/action-send-mail@6e502825a508b867ab2954ad6343b68787624c01 # pinned | ||
| uses: dawidd6/action-send-mail@v3.12.0 | ||
|
Check failure on line 20 in .github/workflows/push-email-notify.yml
|
||
|
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. 🔴 HIGH RISK Pinning to a 40-character commit SHA is the recommended way to ensure that the code handling your secrets remains immutable and secure. |
||
| with: | ||
| server_address: ${{ secrets.SMTP_HOST }} | ||
| server_port: ${{ secrets.SMTP_PORT }} | ||
|
|
||
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.
🟡 MEDIUM RISK
Suggestion: This change replaces immutable commit SHAs with mutable version tags. Pinning to a specific SHA is a security best practice to prevent supply chain attacks, especially in workflows with read/write permissions. Consider maintaining the SHA pin and using comments to track the semantic version.