Skip to content

Call the AgBOM Viewer workflow with the self-repository syntax - #780

Merged
rocklambros merged 1 commit into
integrationfrom
fix/self-repository-uses
Dec 3, 2026
Merged

rocklambros merged 1 commit into
integrationfrom
fix/self-repository-uses

Conversation

@rocklambros

Copy link
Copy Markdown
Collaborator

What changed

zizmor's self-repository audit (code scanning alert 18) flags uses: ./.github/workflows/agbom-viewer.yml in .github/workflows/deploy-pages.yml and asks for GitHub's self-repository syntax, $/. GitHub's changelog of July 30, 2026 says $/ works for reusable workflow calls and resolves to the workflow's own repository at the exact commit that is running. It needs runner 2.336.0 or newer, which GitHub-hosted runners have.

That line was the only ./ uses in the repository. The test that pins the viewer job now expects $/. The alert's review thread also blocked PR #777 (the 0.1.6 promotion) and PR #734 (the release/0.2 sync) until someone resolved it, and it would block every pull request that touches this line.

Which issue does this implement

None. This fixes code scanning alert 18.

  • This is an editorial correction (typo, grammar, link, formatting) with no change in
    meaning, so it needs no issue

Base branch

  • integration. Every pull request targets integration, documentation included.
    Only a promotion targets main (see CONTRIBUTING.md)
  • release/0.2, because this changes normative specification text, a schema, or a
    conformance requirement for 0.2, or carries out such a change in code

Type of change

  • Specification change (schema, hooks, events, AgBOM)
  • Reference implementation or adapter
  • Documentation
  • Tooling or CI
  • Governance (licensing, security policy, contributor docs)

I tested this

  • I synced my branch with the base branch before opening this
  • uv run pytest -v passes on my machine
  • uv run mkdocs build --strict passes on my machine

tests/test_deploy_pages_workflow.py and tests/test_verify_published.py pass (19), and zizmor reports no findings across the repository. The viewer job runs on this pull request through the new $/ call, so its checks show the syntax works.

Checklist

  • Commits are signed off with git commit -s (required by the DCO)
  • Prose follows STYLE.md
  • No secrets, tokens, or internal URLs in the diff

Security

  • This change has no security impact

The viewer workflow now resolves to the commit that is running, which zizmor treats as pinned.

zizmor's self-repository audit (code scanning alert 18) asks for $/ in
place of ./ in a same-repository uses. GitHub's July 30, 2026 changelog
says $/ works for reusable workflow calls and resolves to the workflow's
own repository at the exact commit that is running. deploy-pages.yml was
the only ./ uses in the repository. The test that pins the viewer job
now expects the new form.

Signed-off-by: Rock Lambros <rock@rockcyber.com>
@rocklambros

Copy link
Copy Markdown
Collaborator Author

Admin merge: this closes code scanning alert 18, whose review thread blocks every pull request that touches this line. The viewer job passed through the new syntax on this pull request.

@rocklambros
rocklambros merged commit a792d67 into integration Dec 3, 2026
15 checks passed
@github-project-automation github-project-automation Bot moved this from Needs triage to Done in ACS Project Tracker Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant