Skip to content

Commit f22d5cd

Browse files
authored
ci(gha): execute sast-snyx only on main branch
1 parent 29195e6 commit f22d5cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
env:
103103
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
104104
sast-snyk:
105+
if: github.ref == 'refs/heads/main'
105106
runs-on: ubuntu-latest
106107
needs: build
107108
steps:
@@ -144,7 +145,6 @@ jobs:
144145
- unit-test
145146
- mutation-test
146147
- dependency-vulnerability-analysis
147-
- sast-snyk
148148
- sast-iac-trivy-hadolint
149149
if: github.event.pull_request.user.login == 'dependabot[bot]' && github.repository == 'abhisheksr01/spring-boot-microservice-best-practices'
150150
steps:

0 commit comments

Comments
 (0)