feat: rework cli (#68) #167
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Scanning | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "**/*.md" | |
- docs/** | |
- examples/** | |
schedule: | |
- cron: 0 5 * * 1 # Run every monday at 5 UTC | |
env: | |
GORELEASER_VERSION: v2.0.1 | |
jobs: | |
codeql: | |
runs-on: macos-latest | |
permissions: | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
with: | |
show-progress: false | |
- name: Setup Golang | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version-file: go.mod | |
- name: Setup Goreleaser | |
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 | |
with: | |
version: ${{ env.GORELEASER_VERSION }} | |
install-only: true | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7 | |
with: | |
languages: go | |
- name: Run Build | |
run: make build | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@f079b8493333aace61c81488f8bd40919487bd9f # v3.25.7 |