1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 21:29:42 +00:00

Supplemental Security Audit Report

This commit is contained in:
Tw93
2025-12-11 15:18:04 +08:00
parent 4a99620580
commit 0384b3ffd2
2 changed files with 89 additions and 38 deletions

View File

@@ -27,6 +27,17 @@ jobs:
- name: Build Universal Binary for system status
run: ./scripts/build-status.sh
- name: Update Security Audit Metadata
run: |
TAG=${GITHUB_REF#refs/tags/}
VERSION=${TAG#V} # Remove 'V' prefix if present
DATE=$(date +'%B %d, %Y')
# Update Date and Audited Version in SECURITY_AUDIT.md
sed -i "s|^**Date:**.*|**Date:** $DATE|" SECURITY_AUDIT.md
sed -i "s|^**Audited Version:**.*|**Audited Version:** $VERSION|" SECURITY_AUDIT.md
echo "Updated SECURITY_AUDIT.md with Date: $DATE and Version: $VERSION"
- name: Verify binary is valid
run: |
if [[ ! -x bin/analyze-go ]]; then
@@ -49,11 +60,11 @@ jobs:
run: |
git config user.name "Tw93"
git config user.email "tw93@qq.com"
git add bin/analyze-go bin/status-go
git add bin/analyze-go bin/status-go SECURITY_AUDIT.md
if git diff --staged --quiet; then
echo "No binary changes to commit"
echo "No changes to commit"
else
git commit -m "chore: update binaries for ${GITHUB_REF#refs/tags/}"
git commit -m "chore: update binaries and security audit for ${GITHUB_REF#refs/tags/}"
git push origin HEAD:main
fi