|
@@ -0,0 +1,37 @@
|
|
|
|
|
+name: "CodeQL Advanced"
|
|
|
|
|
+
|
|
|
|
|
+on:
|
|
|
|
|
+ push:
|
|
|
|
|
+ branches: [ "main" ]
|
|
|
|
|
+ pull_request:
|
|
|
|
|
+ branches: [ "main" ]
|
|
|
|
|
+
|
|
|
|
|
+jobs:
|
|
|
|
|
+ analyze:
|
|
|
|
|
+ name: Analyze project
|
|
|
|
|
+ runs-on: ubuntu-latest
|
|
|
|
|
+ permissions:
|
|
|
|
|
+ # required for all workflows
|
|
|
|
|
+ security-events: write
|
|
|
|
|
+
|
|
|
|
|
+ # required to fetch internal or private CodeQL packs
|
|
|
|
|
+ packages: read
|
|
|
|
|
+
|
|
|
|
|
+ # only required for workflows in private repositories
|
|
|
|
|
+ actions: read
|
|
|
|
|
+ contents: read
|
|
|
|
|
+
|
|
|
|
|
+ strategy:
|
|
|
|
|
+ fail-fast: false
|
|
|
|
|
+ steps:
|
|
|
|
|
+ - name: Checkout repository
|
|
|
|
|
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
|
+
|
|
|
|
|
+ # Initializes the CodeQL tools for scanning.
|
|
|
|
|
+ - name: Initialize CodeQL
|
|
|
|
|
+ uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
|
|
|
|
|
+ with:
|
|
|
|
|
+ languages: go
|
|
|
|
|
+ build-mode: autobuild
|
|
|
|
|
+ - name: Perform CodeQL Analysis
|
|
|
|
|
+ uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
|