From 767fa0edeec5b7c3423efea7ac9bcf84a2b0e8ea Mon Sep 17 00:00:00 2001 From: Ivan Gonzalez <135244609+ivgonzalezc@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:16:15 -0500 Subject: [PATCH] ci: correction on step names (#11) * ci: correction on step names * ci: adding github ref to checkout --- .github/workflows/codeql.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1df68f7..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 @@ -38,7 +40,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: @@ -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