From d14daba648558a893a7a9fbe353084877a0da04d Mon Sep 17 00:00:00 2001 From: Ali Kamal <60692635+stryker13799@users.noreply.github.com> Date: Fri, 24 Feb 2023 00:36:20 +0500 Subject: [PATCH] Create CodeQL.yaml --- .github/workflows/CodeQL.yaml | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/CodeQL.yaml diff --git a/.github/workflows/CodeQL.yaml b/.github/workflows/CodeQL.yaml new file mode 100644 index 0000000..c399613 --- /dev/null +++ b/.github/workflows/CodeQL.yaml @@ -0,0 +1,38 @@ +name: "CodeQL Run" + +on: + push: + branches: [ali_branch] + pull_request: + branches: [master] + schedule: + - cron: '30 1 * * 0' + +jobs: + CodeQL-Build: + runs-on: ubuntu-latest + + permissions: + security-events: write + + actions: read + contents: read + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + # Override language selection by uncommenting this and choosing your languages + with: + languages: go, javascript, csharp, python, cpp, java, ruby + + # 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 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2