Skip to content
Open
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
30 changes: 30 additions & 0 deletions .github/workflows/security-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Weekly security scan

on:
workflow_dispatch:
schedule:
# Cron for every Monday at 4:12 UTC.
- cron: "12 4 * * 1"

# Remove all permissions from GITHUB_TOKEN except metadata.
permissions: {}

jobs:
scan:
strategy:
fail-fast: false
matrix:
branch: [master, release-1.33, release-1.32, release-1.31]
name: Verify security
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/[email protected]
with:
ref: ${{ matrix.branch }}
- name: Set up Go
uses: actions/[email protected]
with:
go-version-file: go.mod
- name: Run verify security target
run: make verify-security
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ vet: check
cover: work
go test -tags=unit $(shell go list ./...) -cover

verify-security: work
go run golang.org/x/vuln/cmd/[email protected] ./...

docs:
@echo "$@ not yet implemented"

Expand Down