2021-12-15 02:37:17 +00:00
|
|
|
name: "CodeQL"
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2021-12-29 16:21:02 +00:00
|
|
|
- "src/*.go"
|
2021-12-16 22:16:20 +00:00
|
|
|
- "src/go.mod"
|
|
|
|
- "src/go.sum"
|
2023-04-12 01:35:25 +00:00
|
|
|
- "cli/picocrypt/*.go"
|
|
|
|
- "cli/picocrypt/go.mod"
|
|
|
|
- "cli/picocrypt/go.sum"
|
2021-12-15 02:37:17 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
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 Repository
|
2023-04-28 03:00:59 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-12-15 02:37:17 +00:00
|
|
|
- name: Initialize CodeQL
|
2022-07-01 18:13:18 +00:00
|
|
|
uses: github/codeql-action/init@v2
|
2021-12-15 02:37:17 +00:00
|
|
|
with:
|
|
|
|
languages: ${{ matrix.language }}
|
|
|
|
- name: Autobuild
|
2022-07-01 18:13:18 +00:00
|
|
|
uses: github/codeql-action/autobuild@v2
|
2021-12-15 02:37:17 +00:00
|
|
|
- name: Perform CodeQL Analysis
|
2022-07-01 18:13:18 +00:00
|
|
|
uses: github/codeql-action/analyze@v2
|