Repository navigation
fix(release): validate gate dir in release_gate_canary.sh (SEC010) - #7193
Merged
Merged
Conversation
… SEC010) Pmat-Ticket: PMAT-7185 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
§13.11 rung 1 — quorum shadow verdict Shadow mode: this records a verdict and merges nothing. A refusal |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What and why
Main
ef13445a9(#7186) addedscripts/release_gate_canary.sh. The pinned bashrs 7.4.2 gate (guard-cargo,scripts/check_bashrs_gate.sh) reportedscripts/release_gate_canary.sh:15 SEC010(cd "$DIR") and:16 SEC010(cat "$DIR/PIN"), run 44072336628. This adds a path validation (case "$DIR": absolute, no..) before the first use. Behaviour is unchanged: DIR is the git toplevel plus.ops/release.Measured with the pinned bashrs 7.4.2: both canary lines are gone from the gate output (under the pinned 7.4.2 the gate goes from 2 findings to 0 over 680 files, rc=0; the ~151 SEC010 seen locally come from bashrs 7.4.3 on PATH, not the pin).
make -s release-gate-canaryprintsPASS: release gate canary, 6/6 rows.PRE-FLIGHT
ont-delta: none
Refs #7185
keep-open: #7185 stays open until make release-gate runs on the v0.75.0 tag
🤖 Generated with Claude Code