diff --git a/.github/workflows/codeql-complete.yml b/.github/workflows/codeql-complete.yml new file mode 100644 index 0000000..c9a2ecb --- /dev/null +++ b/.github/workflows/codeql-complete.yml @@ -0,0 +1,53 @@ +name: "CodeQL - Complete analysis" + +on: + schedule: + - cron: '44 23 6 * *' # Run CodeQL scan on a day of every month at 11:44 PM UTC + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + timeout-minutes: 30 # Set timeout to 30 minutes; Change if your project takes longer to scan + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'go' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + + - uses: actions/setup-go@v3 + with: + cache: true + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + # queries: security-extended,security-and-quality + # debug: true # Only use this for debugging. It will increase the runtime of the action and take up storage + + # Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + # If the Autobuild fails above, remove it and uncomment the following three lines. + # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. + # - run: | + # echo "Run, Build Application using script" + # ./location_of_script_within_repo/buildscript.sh + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" \ No newline at end of file