mirror of
https://github.com/lunchcat/sif.git
synced 2026-03-12 21:23:04 -07:00
40 lines
810 B
YAML
40 lines
810 B
YAML
name: code quality
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: "0 6 * * 1" # monday 06:00 UTC
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
codeql:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
security-events: write
|
|
contents: read
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: set up go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.24"
|
|
- name: initialize codeql
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: go
|
|
- name: build
|
|
run: go build ./...
|
|
- name: perform codeql analysis
|
|
uses: github/codeql-action/analyze@v3
|
|
with:
|
|
category: "/language:go"
|