Skip to content

Commit

Permalink
Add explicit permissions to workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Nola <derek.nola@suse.com>
  • Loading branch information
dereknola committed Jan 12, 2023
1 parent 3cafc8e commit 4dab042
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-k3s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
required: false
default: false

permissions:
contents: read

jobs:
build:
name: Build
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cgroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
- ".github/**"
- "!.github/workflows/cgroup.yaml"
workflow_dispatch: {}

permissions:
contents: read

jobs:
prep:
name: "Prepare"
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/epic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- "install.sh"
- "tests/install/**"
workflow_dispatch: {}

permissions:
contents: read

jobs:
build:
name: Build
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
- ".github/**"
- "!.github/workflows/integration.yaml"
workflow_dispatch: {}

permissions:
contents: read

jobs:
build:
uses: ./.github/workflows/build-k3s.yaml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nightly-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
schedule:
- cron: "0 0 * * 1-5"
workflow_dispatch: {}

permissions:
contents: read

jobs:
test:
name: "Smoke Test"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/snapshotter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
- ".github/**"
- "!.github/workflows/snapshotter.yaml"
workflow_dispatch: {}

permissions:
contents: read

jobs:
prep:
name: "Prepare"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/unitcoverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
- ".github/**"
- "!.github/workflows/unitcoverage.yaml"
workflow_dispatch: {}

permissions:
contents: read

jobs:
test:
name: Unit Tests
Expand Down
File renamed without changes.

0 comments on commit 4dab042

Please sign in to comment.