~trn/gfsmux

a601513dab11193785c583caf91741da99a1f88d — LGTM Migrator 1 year, 8 months ago c0f88e0
Add CodeQL workflow for GitHub code scanning
1 files changed, 41 insertions(+), 0 deletions(-)

A .github/workflows/codeql.yml
A .github/workflows/codeql.yml => .github/workflows/codeql.yml +41 -0
@@ 0,0 1,41 @@
name: "CodeQL"

on:
  push:
    branches: [ "master" ]
  pull_request:
    branches: [ "master" ]
  schedule:
    - cron: "10 0 * * 2"

jobs:
  analyze:
    name: Analyze
    runs-on: ubuntu-latest
    permissions:
      actions: read
      contents: read
      security-events: write

    strategy:
      fail-fast: false
      matrix:
        language: [ go ]

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Initialize CodeQL
        uses: github/codeql-action/init@v2
        with:
          languages: ${{ matrix.language }}
          queries: +security-and-quality

      - name: Autobuild
        uses: github/codeql-action/autobuild@v2

      - name: Perform CodeQL Analysis
        uses: github/codeql-action/analyze@v2
        with:
          category: "/language:${{ matrix.language }}"