File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Apply Follow-up Security Fixes
2+
3+ on :
4+ push :
5+ branches :
6+ - audit/fix-critical-high
7+ paths :
8+ - scripts/apply_followup_security_fixes.py
9+ - .github/workflows/apply-followup-security.yml
10+
11+ permissions :
12+ contents : write
13+
14+ jobs :
15+ apply :
16+ runs-on : ubuntu-latest
17+ timeout-minutes : 20
18+ steps :
19+ - name : Checkout remediation branch
20+ uses : actions/checkout@v4
21+ with :
22+ ref : audit/fix-critical-high
23+ fetch-depth : 0
24+
25+ - name : Apply follow-up patch
26+ run : python3 scripts/apply_followup_security_fixes.py
27+
28+ - name : Format Rust sources
29+ run : cargo fmt --all
30+
31+ - name : Remove one-shot remediation machinery
32+ run : |
33+ git rm scripts/apply_critical_high_fixes.py
34+ git rm scripts/apply_followup_security_fixes.py
35+ git rm .github/workflows/apply-followup-security.yml
36+
37+ - name : Validate patch shape
38+ run : git diff --check
39+
40+ - name : Commit follow-up fixes
41+ run : |
42+ git config user.name "kanari-security-bot"
43+ git config user.email "security-bot@users.noreply.github.com"
44+ git add crates/kanari-core crates/kanari-types move-execution/v1/kanari-move-runtime-v1
45+ git commit -m "fix(security): atomically commit published modules"
46+ git push origin HEAD:audit/fix-critical-high
You can’t perform that action at this time.
0 commit comments