fix: scorecard action permissions (#4760)

This commit is contained in:
Matti Nannt
2025-02-18 18:44:06 +01:00
committed by GitHub
parent 2e845ab0c0
commit e1553becbc

View File

@@ -10,9 +10,9 @@ on:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: '17 17 * * 6'
- cron: "17 17 * * 6"
push:
branches: [ "main" ]
branches: ["main"]
# Declare default permissions as read only.
permissions: read-all
@@ -26,6 +26,8 @@ jobs:
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
# Add this permission
actions: write # Required for artifact upload
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read