go-sdk/.github/workflows/nightly.yml
Robert Findley 7b8f83fa1b
.github: add permissions to the nightly workflow (#690)
This is best practice, and I'd missed it while adding the nightly
vulncheck workflow.
2025-12-08 12:58:02 -05:00

20 lines
376 B
YAML

name: Nightly
on:
schedule:
- cron: '0 2 * * *' # 2 AM UTC daily
workflow_dispatch:
permissions:
contents: read
jobs:
vulncheck:
runs-on: ubuntu-latest
steps:
- name: Run govulncheck
uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1.0.4
with:
go-version-file: go.mod
go-package: ./...