Add explicit permissions to workflows (#6700)

Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
Derek Nola 2023-01-12 13:57:57 -08:00 committed by GitHub
parent d85952d6a0
commit cc3583399a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 33 additions and 0 deletions

View File

@ -8,6 +8,9 @@ on:
required: false
default: false
permissions:
contents: read
jobs:
build:
name: Build

View File

@ -19,6 +19,10 @@ on:
- ".github/**"
- "!.github/workflows/cgroup.yaml"
workflow_dispatch: {}
permissions:
contents: read
jobs:
prep:
name: "Prepare"

View File

@ -2,10 +2,16 @@ name: Update epics
on:
issues:
types: [opened, closed, reopened]
permissions:
contents: read
jobs:
epics:
runs-on: ubuntu-latest
name: Update epic issues
permissions:
issues: read | write
steps:
- name: Run epics action
uses: cloudaper/epics-action@v1

View File

@ -12,6 +12,10 @@ on:
- "install.sh"
- "tests/install/**"
workflow_dispatch: {}
permissions:
contents: read
jobs:
build:
name: Build

View File

@ -19,6 +19,10 @@ on:
- ".github/**"
- "!.github/workflows/integration.yaml"
workflow_dispatch: {}
permissions:
contents: read
jobs:
build:
uses: ./.github/workflows/build-k3s.yaml

View File

@ -3,6 +3,10 @@ on:
schedule:
- cron: "0 0 * * 1-5"
workflow_dispatch: {}
permissions:
contents: read
jobs:
test:
name: "Smoke Test"

View File

@ -19,6 +19,10 @@ on:
- ".github/**"
- "!.github/workflows/snapshotter.yaml"
workflow_dispatch: {}
permissions:
contents: read
jobs:
prep:
name: "Prepare"

View File

@ -21,6 +21,10 @@ on:
- ".github/**"
- "!.github/workflows/unitcoverage.yaml"
workflow_dispatch: {}
permissions:
contents: read
jobs:
test:
name: Unit Tests