mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Add explicit permissions to workflows (#6700)
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit is contained in:
parent
d85952d6a0
commit
cc3583399a
3
.github/workflows/build-k3s.yaml
vendored
3
.github/workflows/build-k3s.yaml
vendored
@ -8,6 +8,9 @@ on:
|
||||
required: false
|
||||
default: false
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
|
4
.github/workflows/cgroup.yaml
vendored
4
.github/workflows/cgroup.yaml
vendored
@ -19,6 +19,10 @@ on:
|
||||
- ".github/**"
|
||||
- "!.github/workflows/cgroup.yaml"
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
prep:
|
||||
name: "Prepare"
|
||||
|
6
.github/workflows/epic.yaml
vendored
6
.github/workflows/epic.yaml
vendored
@ -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
|
||||
|
4
.github/workflows/install.yaml
vendored
4
.github/workflows/install.yaml
vendored
@ -12,6 +12,10 @@ on:
|
||||
- "install.sh"
|
||||
- "tests/install/**"
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
|
4
.github/workflows/integration.yaml
vendored
4
.github/workflows/integration.yaml
vendored
@ -19,6 +19,10 @@ on:
|
||||
- ".github/**"
|
||||
- "!.github/workflows/integration.yaml"
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
uses: ./.github/workflows/build-k3s.yaml
|
||||
|
4
.github/workflows/nightly-install.yaml
vendored
4
.github/workflows/nightly-install.yaml
vendored
@ -3,6 +3,10 @@ on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 1-5"
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: "Smoke Test"
|
||||
|
4
.github/workflows/snapshotter.yaml
vendored
4
.github/workflows/snapshotter.yaml
vendored
@ -19,6 +19,10 @@ on:
|
||||
- ".github/**"
|
||||
- "!.github/workflows/snapshotter.yaml"
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
prep:
|
||||
name: "Prepare"
|
||||
|
4
.github/workflows/unitcoverage.yaml
vendored
4
.github/workflows/unitcoverage.yaml
vendored
@ -21,6 +21,10 @@ on:
|
||||
- ".github/**"
|
||||
- "!.github/workflows/unitcoverage.yaml"
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Unit Tests
|
||||
|
Loading…
Reference in New Issue
Block a user