-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): pin standards reusables to default-branch HEAD #51
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,9 +11,10 @@ on: | |||||
| workflow_dispatch: | ||||||
|
|
||||||
| permissions: | ||||||
| actions: read | ||||||
|
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. 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win 🔎 Supported by static analysis🤖 get_repo_knowledge executed:
Length of output: 2008 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- workflow ---'
cat -n .github/workflows/hypatia-scan.yml
printf '%s\n' '--- related workflow references ---'
rg -n -C 3 'hypatia-scan|actions: read|security-events: write|hyperpolymath/hypatia|8f2ee50841e216cd8c192eeb68953118190f105c' .github README.md 2>/dev/null || trueRepository: hyperpolymath/aggregate-library Length of output: 2807 🏁 Script executed: #!/bin/bash
set -eu
cat -n .github/workflows/hypatia-scan.ymlRepository: hyperpolymath/aggregate-library Length of output: 731 🏁 Script executed: #!/bin/bash
set -eu
url='https://raw.githubusercontent.com/hyperpolymath/standards/8f2ee50841e216cd8c192eeb68953118190f105c/.github/workflows/hypatia-scan-reusable.yml'
curl -fsSL "$url" | nl -ba | sed -n '1,45p'Repository: hyperpolymath/aggregate-library Length of output: 325 🏁 Script executed: #!/bin/bash
set -eu
url='https://raw.githubusercontent.com/hyperpolymath/standards/8f2ee50841e216cd8c192eeb68953118190f105c/.github/workflows/hypatia-scan-reusable.yml'
curl -fsSL "$url" | sed -n '1,45p'Repository: hyperpolymath/aggregate-library Length of output: 1667 Document why The reusable workflow declares Proposed change- actions: read
+ actions: read # required by hypatia-scan-reusable.yml📝 Committable suggestion
Suggested change
🧰 Tools🪛 zizmor (1.29.0)[warning] 14-14: permissions without explanatory comments (undocumented-permissions): needs an explanatory comment (undocumented-permissions) 🤖 Prompt for AI AgentsSource: Linters/SAST tools
Owner
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. act on this as suggested
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.
Add Coding Agent trial credits or activate Agent usage billing before starting this turn. You are interacting with an AI system. |
||||||
| contents: read | ||||||
| security-events: write | ||||||
|
|
||||||
| jobs: | ||||||
| scan: | ||||||
| uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@092dedada188f56c5915f74a5fd40aac093742c3 | ||||||
| uses: hyperpolymath/standards/.github/workflows/hypatia-scan-reusable.yml@8f2ee50841e216cd8c192eeb68953118190f105c | ||||||
|
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. 🔒 Security & Privacy | 🛡️ Analyzed with Security Review | 🟠 Major | 🏗️ Heavy lift 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
url='https://raw.githubusercontent.com/hyperpolymath/standards/8f2ee50841e216cd8c192eeb68953118190f105c/.github/workflows/hypatia-scan-reusable.yml'
curl -fsSL "$url" | nl -ba | sed -n '1,220p'Repository: hyperpolymath/aggregate-library Length of output: 325 🌐 Web query:
💡 Result: The file hypatia-scan-reusable.yml is a GitHub Actions reusable workflow component within the hyperpolymath/standards repository [1][2][3]. This repository serves as the central standards and tooling library for the hyperpolymath estate, providing shared workflows, policies, and automation [3]. The string 8f2ee50841e216cd8c192eeb68953118190f105c represents a specific commit SHA (or a reference to one) used within the estate's CI/CD infrastructure [1][4]. Such SHA pins are standard practice in this ecosystem to ensure immutability and reproducibility of the security-scanning and governance workflows, such as Hypatia [1][4]. Hypatia is a neurosymbolic CI/CD scanner used across the hyperpolymath estate to audit workflows and enforce security rules [1][2]. The hypatia-scan-reusable.yml workflow is invoked by various repositories to perform these scans, and its configuration—including SHA-pinned versions of actions and scanner rules—is strictly managed to prevent drift and ensure consistent enforcement of security policies, such as banning insecure languages or ensuring proper timeout configurations [1][2][3]. Maintenance of these workflows often involves addressing false positives in the scanner's detectors (e.g., workflow_audit or cicd_rules) by refining rules in the central standards repository, which then necessitates updates to the reusable workflows across the estate [1][2]. Citations:
🏁 Script executed: #!/bin/bash
set -eu
python3 - <<'PY'
from urllib.request import urlopen
url = "https://raw.githubusercontent.com/hyperpolymath/standards/8f2ee50841e216cd8c192eeb68953118190f105c/.github/workflows/hypatia-scan-reusable.yml"
text = urlopen(url).read().decode()
for number, line in enumerate(text.splitlines(), 1):
if number <= 220:
print(f"{number}: {line}")
PYRepository: hyperpolymath/aggregate-library Length of output: 2455 🏁 Script executed: #!/bin/bash
set -eu
curl -fsSL 'https://raw.githubusercontent.com/hyperpolymath/standards/8f2ee50841e216cd8c192eeb68953118190f105c/.github/workflows/hypatia-scan-reusable.yml' | sed -n '1,220p'Repository: hyperpolymath/aggregate-library Length of output: 10510 Security Misconfiguration Reachability: External Pin the nested Hypatia checkout before accepting this revision. On a cache miss, the reusable workflow clones the current default branch after resolving 🤖 Prompt for AI Agents
Owner
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. do it rabbit
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
url='https://raw.githubusercontent.com/hyperpolymath/standards/8f2ee50841e216cd8c192eeb68953118190f105c/.github/workflows/hypatia-scan-reusable.yml'
curl --fail --silent --show-error --location "$url" | nl -ba | sed -n '1,260p'Length of output: 724 🏁 Script executed: #!/bin/bash
set -euo pipefail
url='https://raw.githubusercontent.com/hyperpolymath/standards/8f2ee50841e216cd8c192eeb68953118190f105c/.github/workflows/hypatia-scan-reusable.yml'
curl --fail --silent --show-error --location "$url" |
awk 'NR <= 260 { printf "%d: %s\n", NR, $0 }'Length of output: 13853
Add Coding Agent trial credits or activate Agent usage billing before starting this turn. You are interacting with an AI system. |
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,5 +18,5 @@ permissions: | |
| contents: read | ||
| jobs: | ||
| scan: | ||
| uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@092dedada188f56c5915f74a5fd40aac093742c3 | ||
| uses: hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@8f2ee50841e216cd8c192eeb68953118190f105c | ||
|
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. 🔒 Security & Privacy | 🛡️ Analyzed with Security Review | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -e
printf '%s\n' '--- caller workflow ---'
cat -n .github/workflows/secret-scanner.yml
printf '%s\n' '--- pinned reusable workflow ---'
curl -fsSL 'https://raw.githubusercontent.com/hyperpolymath/standards/8f2ee50841e216cd8c192eeb68953118190f105c/.github/workflows/secret-scanner-reusable.yml' | cat -nRepository: hyperpolymath/aggregate-library Length of output: 43529 Sensitive Data Exposure Reachability: External Remove the unnecessary The pinned reusable workflow does not reference 🧰 Tools🪛 zizmor (1.29.0)[warning] 21-21: secrets unconditionally inherited by called workflow (secrets-inherit): this reusable workflow (secrets-inherit) 🤖 Prompt for AI AgentsSource: Linters/SAST tools
Owner
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. act on this
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.
You are interacting with an AI system. |
||
| secrets: inherit | ||
Uh oh!
There was an error while loading. Please reload this page.