Skip to content

Commit

Permalink
Fix workflows, permissions at top level
Browse files Browse the repository at this point in the history
Signed-off-by: David Cassany <dcassany@suse.com>
  • Loading branch information
davidcassany committed Jul 9, 2024
1 parent 8b8ae12 commit d3da1cf
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ on:
- go.sum
- examples/**

permissions:
content: read
pull-requests: read

jobs:
permissions:
content: read
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build_and_test_arm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ concurrency:
group: ci-${{ inputs.flavor }}-aarch64-${{ github.head_ref || github.ref }}-${{ github.repository }}
cancel-in-progress: true

jobs:
permissions:
content: read
pull-requests: read

permissions:
content: read
jobs:
build-iso:
needs: detect
runs-on: [self-hosted, arm64]
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_and_test_x86.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ concurrency:
group: ci-${{ inputs.flavor }}-x86_64-${{ github.head_ref || github.ref }}-${{ github.repository }}
cancel-in-progress: true

permissions:
content: read
pull-requests: read

jobs:
permissions:
content: read
build-os:
permissions:
packages: write
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ on:
push:
branches:
- main

permissions:
content: read
pull-requests: read

jobs:
permissions:
content: read
build:
runs-on: ubuntu-latest
steps:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/docs-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ on:
- main
schedule:
- cron: 0 20 * * *

permissions:
content: read
pull-requests: read

jobs:
permissions:
content: read
build-deploy:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit d3da1cf

Please sign in to comment.