Skip to content

Commit

Permalink
add oswap dependency check ci cd
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtranq-nashtechglobal committed Aug 6, 2024
1 parent e67029f commit 2877cbf
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/owasp-dependency-check-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: owasp dependency check ci

on:
push:
branches: ["#818-add_OWASP_dependency_check_to_CI"]
paths:
- ".github/workflows/actions/action.yaml"
- ".github/workflows/owasp-dependency-check-ci.yaml"
pull_request:
branches: ["main"]
paths:
- ".github/workflows/actions/action.yaml"
- ".github/workflows/owasp-dependency-check-ci.yaml"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
env:
FROM_ORIGINAL_REPOSITORY: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- uses: ./.github/workflows/actions
- name: OWASP Dependency Check
run: mvn org.owasp:dependency-check-maven:check
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,17 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
Expand Down

0 comments on commit 2877cbf

Please sign in to comment.