Skip to content

Commit

Permalink
Merge pull request #334 from raulcabello/token-permission
Browse files Browse the repository at this point in the history
Add read-all permission to all workflows
  • Loading branch information
raulcabello committed Nov 2, 2022
2 parents c0f1cc3 + 702b43a commit eb32104
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
push:
pull_request:

# Declare default permissions as read only.
permissions: read-all

jobs:
unit_tests:
name: Unit tests
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/container-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
branches:
- "*"

# Declare default permissions as read only.
permissions: read-all


jobs:
build:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build container image

# Declare default permissions as read only.
permissions: read-all

on:
workflow_call:
inputs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: End-to-end tests

# Declare default permissions as read only.
permissions: read-all

on:
workflow_dispatch:
schedule:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- 'v*'
branches:
- 'main'

# Declare default permissions as read only.
permissions: read-all

jobs:
fossa-scan:
runs-on: ubuntu-latest
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/openssf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
security-events: write
# Used to receive a badge. (Upcoming feature)
id-token: write
actions: read
contents: read

steps:
- name: "Checkout code"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
tags:
- 'v*'

# Declare default permissions as read only.
permissions: read-all

jobs:
ci:
uses: kubewarden/kubewarden-controller/.github/workflows/ci.yml@main
Expand Down

0 comments on commit eb32104

Please sign in to comment.