From 696554d66a330c6707221b09f0445a7b752c1ba5 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Thu, 29 Aug 2024 09:13:52 +0000 Subject: [PATCH] setup CodeQL workflow Signed-off-by: Matthieu MOREL --- .github/workflows/codeql.yml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..c3eefb635 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,43 @@ +name: "CodeQL" + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: '31 6 * * 1' + +permissions: + contents: read + +jobs: + codeql-analyze: + name: CodeQL Analyze + runs-on: ubuntu-latest + + permissions: + security-events: write + actions: read + + strategy: + fail-fast: false + matrix: + language: + - go + + steps: + - name: Checkout repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@2c779ab0d087cd7fe7b826087247c2c81f27bfa6 # v3.26.5