From 717f41b6769a365a34313306c83adcc588bad284 Mon Sep 17 00:00:00 2001 From: Ivan Gonzalez Date: Wed, 14 Feb 2024 18:19:53 -0500 Subject: [PATCH 1/2] ci: correction on step names --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1df68f7..e08472a 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -38,7 +38,7 @@ jobs: uses: github/codeql-action/analyze@v3 analyze_on_branch: - name: Analyze on PR + name: Analyze on branch if: ${{ github.actor != 'dependabot[bot]' && github.event_name != 'pull_request' }} runs-on: ubuntu-latest strategy: From e5b443cedf4c0982cb9e8d403f0e0b9a0c62f560 Mon Sep 17 00:00:00 2001 From: Ivan Gonzalez Date: Thu, 15 Feb 2024 15:00:44 -0500 Subject: [PATCH 2/2] ci: adding github ref to checkout --- .github/workflows/codeql.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e08472a..58e5ee0 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,6 +24,8 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} + - name: Initialize CodeQL uses: github/codeql-action/init@v3 @@ -51,6 +53,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.ref }} - name: Initialize CodeQL uses: github/codeql-action/init@v3