Skip to content

feat(ci): add Action self-test workflow, sticky PR comment, and store cache (#108) - #292

Open
Sanjai-Gopal wants to merge 2 commits into
secfoo-com:mainfrom
Sanjai-Gopal:feat/action-selftest-108
Open

Sanjai-Gopal wants to merge 2 commits into
secfoo-com:mainfrom
Sanjai-Gopal:feat/action-selftest-108

Conversation

@Sanjai-Gopal

Copy link
Copy Markdown
Contributor

Fixes #108

What does this change, and why?

  • Adds a hidden deterministic fake agent adapter (--agent fake, enabled only when SECFOO_FAKE_AGENT=1) for CI self-testing without API spend.
  • Adds comment (single sticky <!-- secfoo --> PR comment, non-fatal on read-only fork tokens) and cache (actions/cache@v4 for ~/.secfoo) inputs to action.yml, plus version: local for PR self-tests.
  • Adds .github/workflows/action-selftest.yml covering exit codes 0, 1, 2, and 3 and SARIF 2.1.0 validation, along with tests/test_action_selftest.py.

Testing

  • pytest tests/test_action_selftest.py tests/test_docs_consistency.py -v (22 passed)
  • ruff check . (All checks passed)
  • bandit -r src/secfoo -c .bandit -ll -q (exit 0)

@Sanjai-Gopal
Sanjai-Gopal requested a review from vsn411 as a code owner December 6, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prove the GitHub Action end to end: self-test workflow, sticky PR comment, cached store

1 participant