Skip to content
Merged
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
14 changes: 8 additions & 6 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,42 @@
# This workflow will run security checks against our project

name: Security

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "0 0 * * 1" # every Monday at 00:00 UTC

jobs:
osv-scanner:
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'bump:')"
runs-on: ubuntu-latest
container:
image: ghcr.io/google/osv-scanner:v2.1.0@sha256:9a1ba57d2a1506c9e9d0dfbeaf46346507e829745b70d47d77e12c38e66de8d7
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Run OSV Scanner
run: |
/osv-scanner --format table -r .

semgrep:
if: github.event_name != 'schedule' && !startsWith(github.event.head_commit.message, 'bump:')
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'bump:')"
container:
image: returntocorp/semgrep:1.128.1@sha256:144d315f7354c2b2c53021a76165a500f67252c47464be75e951b67050f54a9e
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Run Semgrep
run: |
semgrep scan --config auto

twyn:
if: github.event_name != 'schedule' && !startsWith(github.event.head_commit.message, 'bump:')
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, 'bump:')"
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

- name: Install uv
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2

Expand Down
Loading