Skip to content

Merge pull request #10 from tkc/dependabot/go_modules/gopkg.in/yaml.v… #27

Merge pull request #10 from tkc/dependabot/go_modules/gopkg.in/yaml.v…

Merge pull request #10 from tkc/dependabot/go_modules/gopkg.in/yaml.v… #27

name: "CodeQL"
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
schedule:
- cron: '0 1 * * 6' # Run every Saturday at 1 AM
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language: [ 'go' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'
cache: true
- name: Build
run: go build ./...
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"