From 72a3ee3444e0881aca527a634854c79584b4877c Mon Sep 17 00:00:00 2001 From: anupsv Date: Mon, 16 Dec 2024 23:56:57 +0530 Subject: [PATCH] Create codeQL-scanning.yaml (#997) --- .github/workflows/codeQL-scanning.yaml | 49 ++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/codeQL-scanning.yaml diff --git a/.github/workflows/codeQL-scanning.yaml b/.github/workflows/codeQL-scanning.yaml new file mode 100644 index 000000000..897553f96 --- /dev/null +++ b/.github/workflows/codeQL-scanning.yaml @@ -0,0 +1,49 @@ +name: "CodeQL scanning" + +on: + push: + branches: + - master + - 'release/*' + pull_request: + branches: + - master + - 'release/*' + paths: + - 'node/**' + - 'operators/**' + - 'retriever/**' + - 'disperser/**' + - 'core/**' + - 'common/**' + - 'api/**' + - '.github/codeql/**' + - '.github/workflows/codeql-analysis.yml' + schedule: + - cron: '0 9 * * *' + +jobs: + CodeQL-Build: + + runs-on: ubuntu-latest + + permissions: + contents: read + security-events: write + pull-requests: read + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: go + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3