Skip to content

add new ci cd pipeline #190

add new ci cd pipeline

add new ci cd pipeline #190

Workflow file for this run

name: Security
on:
push:
branches: [main]
schedule:
- cron: "0 9 * * 1" # Monday 9am UTC
permissions:
contents: read
env:
GO_VERSION: "1.25.x"
jobs:
scan:
name: Security Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true
cache-dependency-path: go.sum
- name: govulncheck
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
- name: gosec
run: |
go install github.com/securego/gosec/v2/cmd/gosec@latest
gosec -exclude-dir=vendor -exclude-dir=scripts ./...
- name: gitleaks
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}