docs(status): Write in-code documentation #3
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: 🚨 Analyze Code (CodeQL) | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- '**.go' | |
- '**.mod' | |
pull_request: | |
branches: | |
- "main" | |
paths: | |
- '**.go' | |
- '**.mod' | |
workflow_dispatch: | |
jobs: | |
analyze: | |
name: Analyze Code (CodeQL) | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'go' ] | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- | |
name: Checkout the repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- | |
name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- | |
name: Autobuild | |
uses: github/codeql-action/autobuild@v3 | |
- | |
name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |