33 lines
688 B
YAML
33 lines
688 B
YAML
|
|
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
|
||
|
|
name: "CodeQL: Push"
|
||
|
|
|
||
|
|
on:
|
||
|
|
push:
|
||
|
|
branches: [dev, main]
|
||
|
|
|
||
|
|
jobs:
|
||
|
|
analyze:
|
||
|
|
name: Analyze
|
||
|
|
runs-on: ubuntu-latest
|
||
|
|
permissions:
|
||
|
|
actions: read
|
||
|
|
contents: read
|
||
|
|
security-events: write
|
||
|
|
|
||
|
|
steps:
|
||
|
|
- name: Checkout
|
||
|
|
uses: actions/checkout@v6
|
||
|
|
|
||
|
|
- name: Initialize CodeQL
|
||
|
|
uses: github/codeql-action/init@v4
|
||
|
|
with:
|
||
|
|
languages: go
|
||
|
|
|
||
|
|
- name: Autobuild
|
||
|
|
uses: github/codeql-action/autobuild@v4
|
||
|
|
|
||
|
|
- name: Perform CodeQL Analysis
|
||
|
|
uses: github/codeql-action/analyze@v4
|
||
|
|
with:
|
||
|
|
category: "/language:go"
|