Skip to content

Commit

Permalink
ci: set content permissions as read
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <[email protected]>
  • Loading branch information
artek-koltun authored and glimchb committed Jul 13, 2023
1 parent 339f06d commit 91a9a64
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
call:
permissions:
contents: read
security-events: write
uses: opiproject/opi-smbios-bridge/.github/workflows/codeql.yml@main
secrets: inherit
7 changes: 7 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

concurrency:
# if workflow for PR or push is already running stop it, and start new one
group: poc-storage-${{ github.ref }}
Expand All @@ -17,6 +20,10 @@ concurrency:
jobs:
storage-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
call:
uses: opiproject/opi-smbios-bridge/.github/workflows/go.yml@main
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
call:
uses: opiproject/opi-smbios-bridge/.github/workflows/linters.yml@main
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ on:
release:
types: [published]

permissions:
contents: read

jobs:
release-docker:
permissions:
contents: read
packages: write
id-token: write
uses: ./.github/workflows/docker-publish.yml
secrets: inherit
8 changes: 8 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ on:
pull_request:
branches: [ main ]

permissions:
contents: read

jobs:
call:
permissions:
security-events: write
id-token: write
actions: read
contents: read
uses: opiproject/opi-smbios-bridge/.github/workflows/scorecard.yml@main
secrets: inherit
3 changes: 3 additions & 0 deletions .github/workflows/update-copyright-years-in-license-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
schedule:
- cron: '0 3 1 1 *'

permissions:
contents: read

jobs:
call:
uses: opiproject/opi-smbios-bridge/.github/workflows/update-copyright-years-in-license-file.yml@main
Expand Down

0 comments on commit 91a9a64

Please sign in to comment.