Skip to content

Fail Loudly on Audit Declaration Reads - #847

Merged
ptr727 merged 1 commit into
developfrom
fix/issue-843-pipeline
Aug 19, 2026
Merged

Fail Loudly on Audit Declaration Reads#847
ptr727 merged 1 commit into
developfrom
fix/issue-843-pipeline

Conversation

@ptr727

@ptr727 ptr727 commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • Separate the Dependabot Contents API read from Base64 decoding.
  • Fail immediately when either boundary fails.
  • Execute the documented probe against successful, API-failure, and decode-failure cases.

Root Cause

The declaration pipeline ran without pipefail, so a later successful command could mask an earlier API or decode failure.

Validation

  • 728 Python tests
  • audit self-tests and spec validation
  • ruff, mypy, and coverage
  • actionlint, markdownlint, EditorConfig, CSpell, ShellCheck, and PSScriptAnalyzer

Follow-up to #843 and the Copilot finding on #846.

Copilot AI lite review requested due to automatic review settings August 19, 2026 16:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request hardens the audit declaration probe documented in AUDIT.md so that failures in the GitHub Contents API read and Base64 decoding cannot be masked by later pipeline stages, and adds a regression test to ensure the probe fails loudly at those boundaries.

Changes:

  • Split the Dependabot Contents API read from Base64 decoding, and fail immediately when either step fails.
  • Update the release-guard regression test to execute the updated probe and assert API and decode failures surface as non-zero exits.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
scripts/tests/test_release_guards.py Updates the regression test to run the revised probe and cover API-failure and decode-failure exit behavior.
AUDIT.md Refactors the documented Dependabot declaration probe to separate gh api and base64 -d, failing loudly on either boundary.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@ptr727
ptr727 marked this pull request as ready for review August 19, 2026 17:04
@ptr727
ptr727 merged commit af2c8ff into develop Aug 19, 2026
8 checks passed
@ptr727 ptr727 mentioned this pull request Aug 19, 2026
ptr727 added a commit that referenced this pull request Aug 19, 2026
## Summary

- Promote fail-closed release validation and audit path discovery.
- Promote explicit Bash labels for executable audit commands.
- Promote the canonical PyPI artifact-name regression guard.
- Promote the executable Python entry point for the release-guard test.
- Promote the internally consistent missing-job audit fixture.

## Source

- #844 (`a08713a`)
- #847 (`af2c8ff`)
- #848 (`1cd5b84`)
- #849 (`87c3960`)
- #850 (`9b6c01f`)
- #851 (`bb4d603`)

## Validation

- 730 Python tests
- audit self-tests and spec validation
- ruff, mypy, and coverage
- actionlint, markdownlint, EditorConfig, CSpell, ShellCheck, and
PSScriptAnalyzer
- Copilot full-diff review on each feature pull request

Closes #842
Closes #843
Closes #845
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.

2 participants