mirror of
https://github.com/ivuorinen/actions.git
synced 2026-03-07 12:56:21 +00:00
fix: harden workflow permissions with deny-all top-level and least-privilege job scopes (#482)
This commit is contained in:
11
.github/workflows/security-suite.yml
vendored
11
.github/workflows/security-suite.yml
vendored
@@ -18,11 +18,7 @@ on:
|
||||
- '**/*.yaml'
|
||||
- '.github/workflows/**'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
issues: write
|
||||
actions: read
|
||||
permissions: {}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
||||
@@ -32,6 +28,11 @@ jobs:
|
||||
security-analysis:
|
||||
name: Security Analysis
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
issues: write
|
||||
actions: read
|
||||
|
||||
steps:
|
||||
- name: Checkout PR
|
||||
|
||||
Reference in New Issue
Block a user