Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/go-opentelemetry-io-21…
Browse files Browse the repository at this point in the history
…0ae60208
  • Loading branch information
zirain authored Dec 17, 2024
2 parents 0d2c602 + a9f6cd2 commit 48edbe8
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/osv-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,34 @@ permissions:
jobs:
scan-scheduled:
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
runs-on: ubuntu-latest
steps:
- uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
with:
scan-args: |-
--skip-git
--recursive
./
permissions:
actions: read
contents: read
# Require writing security events to upload SARIF file to security tab
security-events: write
with:
scan-args: |-
--skip-git
--recursive
./

scan-pr:
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.23.4' # The Go version to download (if necessary) and use.

Check warning on line 42 in .github/workflows/osv-scanner.yml

View workflow job for this annotation

GitHub Actions / lint

42:30 [comments] too few spaces before comment

Check warning on line 42 in .github/workflows/osv-scanner.yml

View workflow job for this annotation

GitHub Actions / lint

42:30 [comments] too few spaces before comment

Check warning on line 42 in .github/workflows/osv-scanner.yml

View workflow job for this annotation

GitHub Actions / lint

42:30 [comments] too few spaces before comment
- uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
with:
scan-args: |-
--skip-git
--recursive
./
permissions:
actions: read
contents: read
security-events: write
with:
scan-args: |-
--skip-git
--recursive
./

0 comments on commit 48edbe8

Please sign in to comment.