Unverified Commit cc358339 authored by Derek Nola's avatar Derek Nola Committed by GitHub

Add explicit permissions to workflows (#6700)

parent d85952d6
...@@ -8,6 +8,9 @@ on: ...@@ -8,6 +8,9 @@ on:
required: false required: false
default: false default: false
permissions:
contents: read
jobs: jobs:
build: build:
name: Build name: Build
......
...@@ -19,6 +19,10 @@ on: ...@@ -19,6 +19,10 @@ on:
- ".github/**" - ".github/**"
- "!.github/workflows/cgroup.yaml" - "!.github/workflows/cgroup.yaml"
workflow_dispatch: {} workflow_dispatch: {}
permissions:
contents: read
jobs: jobs:
prep: prep:
name: "Prepare" name: "Prepare"
......
...@@ -2,10 +2,16 @@ name: Update epics ...@@ -2,10 +2,16 @@ name: Update epics
on: on:
issues: issues:
types: [opened, closed, reopened] types: [opened, closed, reopened]
permissions:
contents: read
jobs: jobs:
epics: epics:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Update epic issues name: Update epic issues
permissions:
issues: read | write
steps: steps:
- name: Run epics action - name: Run epics action
uses: cloudaper/epics-action@v1 uses: cloudaper/epics-action@v1
......
...@@ -12,6 +12,10 @@ on: ...@@ -12,6 +12,10 @@ on:
- "install.sh" - "install.sh"
- "tests/install/**" - "tests/install/**"
workflow_dispatch: {} workflow_dispatch: {}
permissions:
contents: read
jobs: jobs:
build: build:
name: Build name: Build
......
...@@ -19,6 +19,10 @@ on: ...@@ -19,6 +19,10 @@ on:
- ".github/**" - ".github/**"
- "!.github/workflows/integration.yaml" - "!.github/workflows/integration.yaml"
workflow_dispatch: {} workflow_dispatch: {}
permissions:
contents: read
jobs: jobs:
build: build:
uses: ./.github/workflows/build-k3s.yaml uses: ./.github/workflows/build-k3s.yaml
......
...@@ -3,6 +3,10 @@ on: ...@@ -3,6 +3,10 @@ on:
schedule: schedule:
- cron: "0 0 * * 1-5" - cron: "0 0 * * 1-5"
workflow_dispatch: {} workflow_dispatch: {}
permissions:
contents: read
jobs: jobs:
test: test:
name: "Smoke Test" name: "Smoke Test"
......
...@@ -19,6 +19,10 @@ on: ...@@ -19,6 +19,10 @@ on:
- ".github/**" - ".github/**"
- "!.github/workflows/snapshotter.yaml" - "!.github/workflows/snapshotter.yaml"
workflow_dispatch: {} workflow_dispatch: {}
permissions:
contents: read
jobs: jobs:
prep: prep:
name: "Prepare" name: "Prepare"
......
...@@ -21,6 +21,10 @@ on: ...@@ -21,6 +21,10 @@ on:
- ".github/**" - ".github/**"
- "!.github/workflows/unitcoverage.yaml" - "!.github/workflows/unitcoverage.yaml"
workflow_dispatch: {} workflow_dispatch: {}
permissions:
contents: read
jobs: jobs:
test: test:
name: Unit Tests name: Unit Tests
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment