mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-08-07 09:23:03 +02:00
feat: add permissions section to workflows for consistent access control
This commit is contained in:
@@ -12,6 +12,10 @@ on:
|
||||
- 'README.md'
|
||||
- 'docs/**'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
name: Build and Test Astro Project
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user