mirror of
https://github.com/tw93/Mole.git
synced 2026-02-15 20:25:04 +00:00
fix(ci): remove security audit update step from release workflow
This commit is contained in:
15
.github/workflows/release.yml
vendored
15
.github/workflows/release.yml
vendored
@@ -27,17 +27,6 @@ jobs:
|
|||||||
- name: Build Universal Binary for system status
|
- name: Build Universal Binary for system status
|
||||||
run: ./scripts/build-status.sh
|
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
|
- name: Verify binary is valid
|
||||||
run: |
|
run: |
|
||||||
if [[ ! -x bin/analyze-go ]]; then
|
if [[ ! -x bin/analyze-go ]]; then
|
||||||
@@ -60,11 +49,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config user.name "Tw93"
|
git config user.name "Tw93"
|
||||||
git config user.email "tw93@qq.com"
|
git config user.email "tw93@qq.com"
|
||||||
git add bin/analyze-go bin/status-go SECURITY_AUDIT.md
|
git add bin/analyze-go bin/status-go
|
||||||
if git diff --staged --quiet; then
|
if git diff --staged --quiet; then
|
||||||
echo "No changes to commit"
|
echo "No changes to commit"
|
||||||
else
|
else
|
||||||
git commit -m "chore: update binaries and security audit for ${GITHUB_REF#refs/tags/}"
|
git commit -m "chore: update binaries for ${GITHUB_REF#refs/tags/}"
|
||||||
git push origin HEAD:main
|
git push origin HEAD:main
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user