2021-06-15 16:01:56 +00:00
|
|
|
name: 🚨 CodeQL Analysis
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2023-03-05 19:33:30 +00:00
|
|
|
paths:
|
|
|
|
- '**.go'
|
|
|
|
- '**.mod'
|
2022-02-09 14:59:31 +00:00
|
|
|
workflow_dispatch:
|
2021-06-15 16:01:56 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
analyze:
|
|
|
|
name: Analyze
|
2023-03-03 23:17:41 +00:00
|
|
|
runs-on: ubuntu-latest-16-cores
|
2021-06-15 16:01:56 +00:00
|
|
|
permissions:
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
language: [ 'go' ]
|
|
|
|
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-03-07 05:04:20 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-06-15 16:01:56 +00:00
|
|
|
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
|
|
- name: Initialize CodeQL
|
2022-05-02 05:05:59 +00:00
|
|
|
uses: github/codeql-action/init@v2
|
2021-06-15 16:01:56 +00:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
|
|
|
|
- name: Autobuild
|
2022-05-02 05:05:59 +00:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2021-06-15 16:01:56 +00:00
|
|
|
|
|
|
|
- name: Perform CodeQL Analysis
|
2022-05-02 05:05:59 +00:00
|
|
|
uses: github/codeql-action/analyze@v2
|