From c192bed8a66e9d860c0251a1562bd90622058a68 Mon Sep 17 00:00:00 2001 From: or-akeyless <147986571+or-akeyless@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:09:52 +0200 Subject: [PATCH 1/2] Create codeql.yml --- .github/workflows/codeql.yml | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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 0000000..8000499 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,42 @@ +name: "CodeQL" + +on: + push: + branches: [ "or-appsec" ] + pull_request: + branches: [ "or-appsec" ] + schedule: + - cron: '0 2 * * 0' + +jobs: + analyze: + name: Analyze + runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + permissions: + security-events: write + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + language: [ 'go' ] + + 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: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" From 86d58f8d5d05b9c478d733425951709d7eec6f3d Mon Sep 17 00:00:00 2001 From: or-akeyless <147986571+or-akeyless@users.noreply.github.com> Date: Mon, 12 Feb 2024 15:13:07 +0200 Subject: [PATCH 2/2] Update codeql.yml --- .github/workflows/codeql.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8000499..7f156e9 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,9 +2,9 @@ name: "CodeQL" on: push: - branches: [ "or-appsec" ] + branches: [ "master" ] pull_request: - branches: [ "or-appsec" ] + branches: [ "master" ] schedule: - cron: '0 2 * * 0'