Skip to content

Commit

Permalink
Merge branch 'fix-ci-permissions'
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Aug 29, 2024
2 parents a77e48d + c2d8128 commit f1d9dd3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ios-rust-ffi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
- clippy.toml
- '**/*.rs'
workflow_dispatch:

permissions: {}

jobs:
build-ios:
runs-on: macos-latest
Expand Down
14 changes: 8 additions & 6 deletions .github/workflows/osv-scanner-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ on:
pull_request:
workflow_dispatch:

permissions:
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read
actions: read
permissions: {}

jobs:
scan-pr:
permissions:
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read
actions: read

# yamllint disable rule:line-length
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@dfa8609a7da62968d73f63f279418e504c1f523f" # v1.8.1
14 changes: 8 additions & 6 deletions .github/workflows/osv-scanner-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,16 @@ on:
branches: [main]
workflow_dispatch:

permissions:
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read
actions: read
permissions: {}

jobs:
scan-scheduled:
permissions:
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read
actions: read

# yamllint disable rule:line-length
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@dfa8609a7da62968d73f63f279418e504c1f523f" # v1.8.1

0 comments on commit f1d9dd3

Please sign in to comment.