Skip to content

Commit a3836e6

Browse files
Avoid triggering skipped workflows on PR (#9349)
1 parent 4ff8f05 commit a3836e6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.github/workflows/analyze-changes.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Analyze changes
33
on:
44
push:
55
branches: [ master ]
6-
pull_request:
7-
# The branches below must be a subset of the branches above
8-
branches: [ master ]
96

107
# Cancel long-running jobs when a new commit is pushed
118
concurrency:
@@ -15,8 +12,6 @@ concurrency:
1512
jobs:
1613
codeql:
1714
name: Analyze changes with GitHub CodeQL
18-
# Don’t run on PR, only when pushing to master
19-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
2015
runs-on: ubuntu-latest
2116
permissions:
2217
actions: read
@@ -61,8 +56,6 @@ jobs:
6156

6257
trivy:
6358
name: Analyze changes with Trivy
64-
# Don’t run on PR, only when pushing to master
65-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
6659
runs-on: ubuntu-latest
6760
permissions:
6861
actions: read

0 commit comments

Comments
 (0)