We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59264c2 commit dbdae2eCopy full SHA for dbdae2e
.github/workflows/ci.yml
@@ -48,6 +48,9 @@ jobs:
48
security:
49
name: Security Audit
50
runs-on: ubuntu-latest
51
+ permissions:
52
+ issues: write
53
+ contents: read
54
steps:
55
- name: Checkout code
56
uses: actions/checkout@v4
@@ -65,4 +68,14 @@ jobs:
65
68
run: pnpm install --frozen-lockfile
66
69
67
70
- name: Security audit
- run: pnpm audit
71
+ run: |
72
+ if ! pnpm audit --audit-level moderate; then
73
+ echo "Security audit failed - creating issue"
74
+ gh issue create \
75
+ --title "Security audit failed on $(date +%Y-%m-%d)" \
76
+ --label "security audit" \
77
+ --body "Security audit failed in CI. Please review and fix vulnerabilities."
78
+ exit 1
79
+ fi
80
+ env:
81
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments