Skip to content

Commit 5078a51

Browse files
committed
Refactor GitHub Actions workflow for security updates: removed unnecessary permissions for security-events and repository-advisories, and updated environment variable for GitHub token to enhance security during vulnerability scanning.
1 parent 628d128 commit 5078a51

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/action_publish-images-security-updates.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ on:
1717
permissions:
1818
contents: write
1919
packages: write
20-
security-events: write
21-
repository-advisories: write
2220

2321
jobs:
2422
scan-vulnerabilities:
@@ -50,7 +48,7 @@ jobs:
5048
- if: inputs.skip_scan != true
5149
id: parse
5250
env:
53-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
GH_TOKEN: ${{ secrets.GHA_SECURITY_ADVISORY_PAT }}
5452
shell: bash
5553
run: |
5654
if [ -f trivy-results.json ]; then

0 commit comments

Comments
 (0)