Skip to content

fix(workflows): make security requirements sync deterministic - #3832

Merged
mnriem merged 1 commit into
github:mainfrom
marcelsafin:fix/security-requirements-sync
Jul 29, 2026
Merged

fix(workflows): make security requirements sync deterministic#3832
mnriem merged 1 commit into
github:mainfrom
marcelsafin:fix/security-requirements-sync

Conversation

@marcelsafin

Copy link
Copy Markdown
Contributor

Fixes #3802

PR checks now diff the actual head from its merge base, seed the temporary output from the committed snapshot, and compile without --upgrade. Scheduled audits keep their existing live upgrade check.

Tests cover the workflow refs, merge-base diff, seeded pins, and compile flags.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 29, 2026 00:59
@marcelsafin
marcelsafin requested a review from mnriem as a code owner July 29, 2026 00:59
@marcelsafin

Copy link
Copy Markdown
Contributor Author

@copilot review

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

Makes security requirement synchronization deterministic while preserving scheduled live upgrades.

Changes:

  • Diffs PR heads from their merge base.
  • Seeds compilation from committed pins and removes --upgrade.
  • Updates workflow tests for refs, pins, and flags.

Reviewed changes

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

File Description
.github/workflows/security.yml Uses the actual PR head SHA.
.github/scripts/check_security_requirements.py Adds merge-base diffing and deterministic compilation.
tests/test_security_workflow.py Verifies the revised synchronization behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

Review details

  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Medium

@mnriem
mnriem merged commit de54ff7 into github:main Jul 29, 2026
14 checks passed
@mnriem

mnriem commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Thank you!

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.

Security Audit "requirements are current" check produces false-positive failures on unrelated PRs

3 participants