Skip to content

Commit

Permalink
feat: update security vulnerability workflow with explicit permission…
Browse files Browse the repository at this point in the history
…s and token
  • Loading branch information
nistee committed Feb 16, 2025
1 parent 268edcd commit edd4663
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/check_security_vulnerability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
env:
RUST_TOOLCHAIN: stable

# Add top-level permissions
permissions:
actions: write
contents: write
security-events: write
jobs:
shared-setup:
name: Shared Setup
Expand All @@ -27,6 +32,8 @@ jobs:
- name: Checkout code
id: checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }} # Explicitly set token

security-scan:
name: Security Scans
Expand Down

0 comments on commit edd4663

Please sign in to comment.