Merge pull request #3228 from jrfnl/feature/ghactions-update-permissions-scorecard

GH Actions/scorecard: update permissions
This commit is contained in:
Marcus Bointon 2025-09-21 11:20:24 +01:00 committed by GitHub
commit 80cd2d5f3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 8 deletions

View File

@ -7,8 +7,7 @@ on:
push:
branches: [ "master" ]
# Declare default permissions as read only.
permissions: read-all
permissions: {}
jobs:
analysis:
@ -17,15 +16,12 @@ jobs:
name: Scorecards analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
# Required when publishing results (badge / API / code scanning)
security-events: write
# Used to receive a badge. (Upcoming feature)
id-token: write
# Needs for private repositories.
contents: read
actions: read
steps:
- name: "Checkout code"
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0