Repository navigation
Hypatia follow-ups: SPDX, lint, alkahest pins, egress block, parser expects, deed migration #229
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
Open
hyperpolymath
wants to merge
15
commits into
main
Choose a base branch
from
claude/laughing-hawking-pibzji
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
86f32cf
fix: SPDX on ffi/zig main.zig, block-aware SPDX lint, alkahest pins
claude 1dda7e9
fix: harden-runner blocks egress in hypatia-scan; last parser expects
claude 75ccf3f
ci(workflow-linter): send the SPDX error to stderr
claude cb0c908
chore(deed): move the retired 6a2 A2ML descriptiles into the repo deed
claude dd088ff
docs(claude): point the Guile Scheme row at the repo deed
claude 52ed149
fix(state): repair the stress suite and gate it in CI again
claude 2273913
fix(state): recover from a torn journal; journal cd's previous_dir
claude bd24f54
fix(state): treat invalid UTF-8 in the journal tail as a torn line
claude 56f9611
fix(state): repair newline-less journal tail; atomic record+trim; 060…
claude 0991b17
fix(state): rebuild instead of gapping when state files vanish; retry…
claude ee5380e
revert: move the stress-suite repair and history journal to their own PR
claude 057be2c
fix: one SPDX identifier in main.zig; Mustfile checks the archived files
claude 477d78b
docs(roadmap): stop sending two tasks to retired A2ML files
claude 1ed04b6
docs(coq): name the three standard axioms the Coq proofs depend on
claude a64133b
Merge branch 'main' into claude/laughing-hawking-pibzji
hyperpolymath File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
126 changes: 18 additions & 108 deletions
126
alkahest-shell-transmuter/.github/workflows/mirror.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,115 +1,25 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # SPDX-FileCopyrightText: 2025 Jonathan D.A. Jewell | ||
| name: Mirror to Git Forges | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
| permissions: read-all | ||
|
|
||
| permissions: | ||
| actions: read | ||
| contents: read | ||
|
|
||
| jobs: | ||
| mirror-gitlab: | ||
| runs-on: ubuntu-latest | ||
| if: vars.GITLAB_MIRROR_ENABLED == 'true' | ||
| steps: | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0 | ||
| with: | ||
| ssh-private-key: ${{ secrets.GITLAB_SSH_KEY }} | ||
| - name: Mirror to GitLab | ||
| run: | | ||
| ssh-keyscan -t ed25519 gitlab.com >> ~/.ssh/known_hosts | ||
| git remote add gitlab git@gitlab.com:hyperpolymath/${{ github.event.repository.name }}.git || true | ||
| git push --force gitlab main | ||
| mirror-bitbucket: | ||
| runs-on: ubuntu-latest | ||
| if: vars.BITBUCKET_MIRROR_ENABLED == 'true' | ||
| steps: | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0 | ||
| with: | ||
| ssh-private-key: ${{ secrets.BITBUCKET_SSH_KEY }} | ||
| - name: Mirror to Bitbucket | ||
| run: | | ||
| ssh-keyscan -t ed25519 bitbucket.org >> ~/.ssh/known_hosts | ||
| git remote add bitbucket git@bitbucket.org:hyperpolymath/${{ github.event.repository.name }}.git || true | ||
| git push --force bitbucket main | ||
| mirror-codeberg: | ||
| runs-on: ubuntu-latest | ||
| if: vars.CODEBERG_MIRROR_ENABLED == 'true' | ||
| steps: | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0 | ||
| with: | ||
| ssh-private-key: ${{ secrets.CODEBERG_SSH_KEY }} | ||
| - name: Mirror to Codeberg | ||
| run: | | ||
| ssh-keyscan -t ed25519 codeberg.org >> ~/.ssh/known_hosts | ||
| git remote add codeberg git@codeberg.org:hyperpolymath/${{ github.event.repository.name }}.git || true | ||
| git push --force codeberg main | ||
| mirror-sourcehut: | ||
| runs-on: ubuntu-latest | ||
| if: vars.SOURCEHUT_MIRROR_ENABLED == 'true' | ||
| steps: | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0 | ||
| with: | ||
| ssh-private-key: ${{ secrets.SOURCEHUT_SSH_KEY }} | ||
| - name: Mirror to SourceHut | ||
| run: | | ||
| ssh-keyscan -t ed25519 git.sr.ht >> ~/.ssh/known_hosts | ||
| git remote add sourcehut git@git.sr.ht:~hyperpolymath/${{ github.event.repository.name }} || true | ||
| git push --force sourcehut main | ||
| mirror-disroot: | ||
| runs-on: ubuntu-latest | ||
| if: vars.DISROOT_MIRROR_ENABLED == 'true' | ||
| steps: | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0 | ||
| with: | ||
| ssh-private-key: ${{ secrets.DISROOT_SSH_KEY }} | ||
| - name: Mirror to Disroot | ||
| run: | | ||
| ssh-keyscan -t ed25519 git.disroot.org >> ~/.ssh/known_hosts | ||
| git remote add disroot git@git.disroot.org:hyperpolymath/${{ github.event.repository.name }}.git || true | ||
| git push --force disroot main | ||
| mirror-gitea: | ||
| runs-on: ubuntu-latest | ||
| if: vars.GITEA_MIRROR_ENABLED == 'true' | ||
| steps: | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: webfactory/ssh-agent@dc588b651fe13675774614f8e6a936a468676387 # v0.9.0 | ||
| with: | ||
| ssh-private-key: ${{ secrets.GITEA_SSH_KEY }} | ||
| - name: Mirror to Gitea | ||
| run: | | ||
| ssh-keyscan -t ed25519 ${{ vars.GITEA_HOST }} >> ~/.ssh/known_hosts | ||
| git remote add gitea git@${{ vars.GITEA_HOST }}:hyperpolymath/${{ github.event.repository.name }}.git || true | ||
| git push --force gitea main | ||
| mirror-radicle: | ||
| runs-on: ubuntu-latest | ||
| if: vars.RADICLE_MIRROR_ENABLED == 'true' | ||
| steps: | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Install Radicle | ||
| run: | | ||
| curl -sSf https://radicle.xyz/install | sh | ||
| echo "$HOME/.radicle/bin" >> $GITHUB_PATH | ||
| - name: Mirror to Radicle | ||
| run: | | ||
| echo "${{ secrets.RADICLE_KEY }}" > ~/.radicle/keys/radicle | ||
| chmod 600 ~/.radicle/keys/radicle | ||
| rad sync --announce || echo "Radicle sync attempted" | ||
| mirror: | ||
| uses: metadatastician/standards/.github/workflows/mirror-reusable.yml@75bd5994470661a099df562d6d5ad2fe744dbd66 | ||
| # Explicit secrets map, not `secrets: inherit` (Hypatia WH008): the callee | ||
| # (standards@75bd5994) declares exactly these seven, all optional. | ||
| secrets: | ||
| GITLAB_SSH_KEY: ${{ secrets.GITLAB_SSH_KEY }} | ||
| BITBUCKET_SSH_KEY: ${{ secrets.BITBUCKET_SSH_KEY }} | ||
| CODEBERG_SSH_KEY: ${{ secrets.CODEBERG_SSH_KEY }} | ||
| SOURCEHUT_SSH_KEY: ${{ secrets.SOURCEHUT_SSH_KEY }} | ||
| DISROOT_SSH_KEY: ${{ secrets.DISROOT_SSH_KEY }} | ||
| GITEA_SSH_KEY: ${{ secrets.GITEA_SSH_KEY }} | ||
| RADICLE_KEY: ${{ secrets.RADICLE_KEY }} |
53 changes: 12 additions & 41 deletions
53
alkahest-shell-transmuter/.github/workflows/secret-scanner.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,49 +1,20 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # Prevention workflow - scans for hardcoded secrets before they reach main | ||
| name: Secret Scanner | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [main] | ||
| permissions: read-all | ||
| jobs: | ||
| trufflehog: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| with: | ||
| fetch-depth: 0 # Full history for scanning | ||
| - name: TruffleHog Secret Scan | ||
| uses: trufflesecurity/trufflehog@8a8ef8526528d8a4ff3e2c90be08e25ef8efbd9b # v3 | ||
| with: | ||
| extra_args: --only-verified --fail | ||
| # Rust-specific: Check for hardcoded crypto values | ||
| rust-secrets: | ||
| runs-on: ubuntu-latest | ||
| if: hashFiles('**/Cargo.toml') != '' | ||
| steps: | ||
| - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | ||
| - name: Check for hardcoded secrets in Rust | ||
| run: | | ||
| # Patterns that suggest hardcoded secrets | ||
| PATTERNS=( | ||
| 'const.*SECRET.*=.*"' | ||
| 'const.*KEY.*=.*"[a-zA-Z0-9]{16,}"' | ||
| 'const.*TOKEN.*=.*"' | ||
| 'let.*api_key.*=.*"' | ||
| 'HMAC.*"[a-fA-F0-9]{32,}"' | ||
| 'password.*=.*"[^"]+"' | ||
| ) | ||
|
|
||
| found=0 | ||
| for pattern in "${PATTERNS[@]}"; do | ||
| if grep -rn --include="*.rs" -E "$pattern" src/; then | ||
| echo "WARNING: Potential hardcoded secret found matching: $pattern" | ||
| found=1 | ||
| fi | ||
| done | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
hyperpolymath marked this conversation as resolved.
Resolved
hyperpolymath marked this conversation as resolved.
Resolved
|
||
|
|
||
| if [ $found -eq 1 ]; then | ||
| echo "::error::Potential hardcoded secrets detected. Use environment variables instead." | ||
| exit 1 | ||
| fi | ||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| scan: | ||
| permissions: | ||
| contents: read | ||
| uses: metadatastician/standards/.github/workflows/secret-scanner-reusable.yml@75bd5994470661a099df562d6d5ad2fe744dbd66 | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.