mirror of
https://github.com/samerfarida/mcp-ssh-orchestrator.git
synced 2026-11-20 20:33:16 +00:00
fix: move permissions to job level in scorecard workflow
Move permissions from workflow level to job level to comply with OpenSSF Scorecard action restrictions. According to documentation: - No workflow level write permissions allowed - Only the job with ossf/scorecard-action can use id-token: write - This ensures workflow passes validation for publishing results The badge and SARIF upload will now work correctly.
This commit is contained in:
@@ -7,14 +7,13 @@ on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
|
||||
permissions:
|
||||
id-token: write # required for publishing
|
||||
contents: read
|
||||
security-events: write
|
||||
|
||||
jobs:
|
||||
analysis:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
id-token: write # required for publishing results and badge
|
||||
contents: read # required for checking branch protection
|
||||
security-events: write # required for publishing results
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
Reference in New Issue
Block a user