Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 9 additions & 13 deletions .github/workflows/vuln-scanner-pr.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
---
name: OSV-Scanner PR Scan

on: # yamllint disable-line rule:truthy
on: # yamllint disable-line rule:truthy
pull_request:
branches: [main]
merge_group:
branches: [main]

permissions:
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
actions: read
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read
pull-requests: write

env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

jobs:
vulnerability-check:
runs-on: ["self-hosted", "Linux"]
steps:
- uses: actions/checkout@v4
- name: Detect vulnerabilities
run: |
ih-github scan \
--repo ${{ github.repository }} \
--pull-request ${{ github.event.pull_request.number }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.9.2"
with:
upload-sarif: false
20 changes: 10 additions & 10 deletions examples/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.