Skip to content

Commit

Permalink
Merge pull request #8 from BeyondTrust/BIPS-16468-fix-codeql
Browse files Browse the repository at this point in the history
Fix: Fixing codeql behavior
  • Loading branch information
thejurysays authored Feb 14, 2024
2 parents 28b7a04 + a19d712 commit b1aadac
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,36 @@ permissions:
actions: read

jobs:
analyze:
name: Analyze
analyze_on_PR:
name: Analyze on PR
if: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: ["go"]

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
config-file: codeql-config.yml
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

analyze_on_branch:
name: Analyze on PR
if: ${{ github.actor != 'dependabot[bot]' && github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down

0 comments on commit b1aadac

Please sign in to comment.