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 committed Jul 12, 2023
1 parent 39a2db0 commit 883cc25
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

Check failure

Code scanning / Scorecard

Token-Permissions High

score is 8: jobLevel 'security-events' permission set to 'write'
Remediation tip: Verify which permissions are needed and consider whether you can reduce them.
Click Remediation section below for further remediation help
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

Check failure

Code scanning / Scorecard

Token-Permissions High

score is 8: jobLevel 'packages' permission set to 'write'
Remediation tip: Verify which permissions are needed and consider whether you can reduce them.
Click Remediation section below for further remediation help
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

Check failure

Code scanning / Scorecard

Token-Permissions High

score is 8: jobLevel 'security-events' permission set to 'write'
Remediation tip: Verify which permissions are needed and consider whether you can reduce them.
Click Remediation section below for further remediation help
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 883cc25

Please sign in to comment.