Skip to content

unit tests: add coverage for unset #782

unit tests: add coverage for unset

unit tests: add coverage for unset #782

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# Ignore changes to common non-code files.
paths-ignore:
- '**/*.md'
- '**/*.rst'
- '**/*.txt'
- '**/*.yml'
- '**/*.yaml'
- '**/*.json'
- '**/*.ini'
- '**/*.env'
schedule:
- cron: '25 6 * * 3'
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
with:
languages: go
# xref: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# xref: https://codeql.github.com/codeql-query-help/go/
queries: security-and-quality
# Build the project, and run CodeQL analysis.
# We do not make use of autobuild as this would run the first Make
# target, which includes a lot more than just the Go files we want to
# scan.
- name: Build
run: make install
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
with:
category: "/language:go"