Skip to content

Commit 6bf2458

Browse files
fix(ci): Add trivy as non required check (#8890)
1 parent 8c44fe4 commit 6bf2458

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ _Recovery:_ Manually trigger the action again.
106106

107107
### analyze-changes [🔗](analyze-changes.yaml)
108108

109-
_Trigger:_ When pushing commits to `master` or any pull request targeting `master`.
109+
_Trigger:_ When pushing commits to `master`.
110110

111111
_Action:_
112112

.github/workflows/analyze-changes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161

6262
trivy:
6363
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'
6466
runs-on: ubuntu-latest
6567
permissions:
6668
actions: read

0 commit comments

Comments
 (0)