feat: add permissions section to workflows for consistent access control

This commit is contained in:
Arunavo Ray
2025-06-12 10:13:41 +05:30
parent 0d60c2fdf1
commit 51de51baa0
2 changed files with 8 additions and 0 deletions

View File

@@ -12,6 +12,10 @@ on:
- 'README.md'
- 'docs/**'
permissions:
contents: read
actions: read
jobs:
build-and-test:
name: Build and Test Astro Project

View File

@@ -18,6 +18,10 @@ on:
schedule:
- cron: '0 0 * * 0' # Run weekly on Sunday at midnight
permissions:
contents: read
actions: read
jobs:
scan:
name: Scan Docker Image