-
Notifications
You must be signed in to change notification settings - Fork 0
Add the git-clean currency check #8
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,8 @@ | ||
| name: Git is clean | ||
| on: [push] | ||
| jobs: | ||
| git-clean: | ||
| # Shared reusable: rebuild from committed sources (`script/Build.sol` emits | ||
| # `src/generated/`) and assert nothing committed has drifted. | ||
| uses: rainlanguage/rainix/.github/workflows/rainix-copy-artifacts.yaml@main | ||
|
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. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: printf '%s\n' 'Repository conventions:'
find /tmp/coderabbit-repo-knowledge/rainlanguage-rain-extrospection-deploy-713a1162 -type f -name '*.md' -maxdepth 3 -print
printf '%s\n' 'Workflow:'
cat -n .github/workflows/git-clean.yaml
printf '%s\n' 'Relevant local references:'
rg -n --hidden --glob '!/.git/**' 'rainix-copy-artifacts|nix-cachix-setup|CACHIX_AUTH_TOKEN|permissions:' .Repository: rainlanguage/rain.extrospection.deploy Length of output: 1245 🏁 Script executed: printf '%s\n' 'Workflow conventions:'
cat /tmp/coderabbit-repo-knowledge/rainlanguage-rain-extrospection-deploy-713a1162/conventions/repo-wide.md
cat /tmp/coderabbit-repo-knowledge/rainlanguage-rain-extrospection-deploy-713a1162/learnings/github-workflows.md
printf '%s\n' 'Referenced workflow at main:'
curl -fsSL https://raw.githubusercontent.com/rainlanguage/rainix/main/.github/workflows/rainix-copy-artifacts.yaml | cat -n
printf '%s\n' 'main ref:'
curl -fsSL https://api.github.com/repos/rainlanguage/rainix/git/ref/heads/main | jq '{sha:.object.sha,type:.object.type}'Repository: rainlanguage/rain.extrospection.deploy Length of output: 5724 Pin the reusable workflow to a reviewed commit SHA.
🧰 Tools🪛 zizmor (1.29.0)[warning] 1-9: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) [warning] 4-9: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) [error] 7-7: unpinned action reference (unpinned-uses): action is not pinned to a hash (required by blanket policy) (unpinned-uses) [warning] 7-7: secrets unconditionally inherited by called workflow (secrets-inherit): this reusable workflow (secrets-inherit) 🤖 Prompt for AI AgentsSources: MCP tools, Linters/SAST tools
Contributor
Author
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. Legitimate, declining here. Both refs you name are org-wide: all sixteen consumers use 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.
🐇 ✏️ Learnings added
You are interacting with an AI system. |
||
| secrets: inherit | ||
|
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. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win 🔎 Supported by static analysis🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- applicable repository conventions ---'
find /tmp/coderabbit-repo-knowledge/rainlanguage-rain-extrospection-deploy-713a1162 -type f -name '*.md' -maxdepth 3 -print
printf '%s\n' '--- workflow ---'
cat -n .github/workflows/git-clean.yaml
printf '%s\n' '--- referenced workflow references in repository ---'
rg -n -A80 -B10 'rainix-copy-artifacts\.yaml|workflow_call|CACHIX_AUTH_TOKEN|permissions:' .github /tmp/coderabbit-repo-knowledge/rainlanguage-rain-extrospection-deploy-713a1162 --glob '*.yaml' --glob '*.yml' --glob '*.md'Repository: rainlanguage/rain.extrospection.deploy Length of output: 1755 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- workflow conventions ---'
cat /tmp/coderabbit-repo-knowledge/rainlanguage-rain-extrospection-deploy-713a1162/learnings/github-workflows.md
cat /tmp/coderabbit-repo-knowledge/rainlanguage-rain-extrospection-deploy-713a1162/conventions/repo-wide.md
printf '%s\n' '--- current reusable workflow ---'
if command -v gh >/dev/null 2>&1; then
gh api repos/rainlanguage/rainix/contents/.github/workflows/rainix-copy-artifacts.yaml --jq '.content' | base64 -d | cat -n
else
curl -fsSL https://raw.githubusercontent.com/rainlanguage/rainix/main/.github/workflows/rainix-copy-artifacts.yaml | cat -n
fiRepository: rainlanguage/rain.extrospection.deploy Length of output: 5650 🌐 Web query:
💡 Result: In GitHub Actions, reusable workflows do not automatically receive access to secrets from the caller workflow [1][2]. You must explicitly provide secrets using one of two methods: explicit mapping or the Citations:
Pass only the secret required by the reusable workflow. The called workflow uses only Proposed caller change- secrets: inherit
+ secrets:
+ CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}🧰 Tools🪛 zizmor (1.29.0)[warning] 1-9: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) [warning] 4-9: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) 🤖 Prompt for AI AgentsSources: MCP tools, Linters/SAST tools
Contributor
Author
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. Confirmed, and it cannot be fixed here. 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.
✏️ Learnings added
You are interacting with an AI system. |
||
Uh oh!
There was an error while loading. Please reload this page.