Skip to content

Commit db9bf27

Browse files
authored
Security workflow fix (#15)
1 parent 34a0f87 commit db9bf27

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/security-checks.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
7373
dependency-review:
7474
name: Dependency Review
75+
# Only run on pull requests where base_ref and head_ref are available
76+
if: github.event_name == 'pull_request'
7577
runs-on: ubuntu-latest
7678
steps:
7779
- name: Checkout
@@ -97,4 +99,4 @@ jobs:
9799
languages: python
98100

99101
- name: Perform CodeQL Analysis
100-
uses: github/codeql-action/analyze@v2
102+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)