set user group and user id for the default SecurityContext (#4313) #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: OSV-Scanner | |
on: | |
pull_request: | |
branches: | |
- "main" | |
merge_group: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
schedule: | |
- cron: '44 15 * * 5' | |
permissions: | |
contents: read | |
jobs: | |
scan-scheduled: | |
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }} | |
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@f0e6719deb666cd19a0b56bc56d01161bd848b4f" # v1.8.5 | |
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@f0e6719deb666cd19a0b56bc56d01161bd848b4f" # v1.8.5 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
with: | |
# TODO enable call analysis once https://github.com/google/osv-scanner/issues/1220 is resolved | |
scan-args: |- | |
--skip-git | |
--recursive | |
./ |