-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TH2-4566] added OWASP vulnerabilities scanning #2
base: dev
Are you sure you want to change the base?
Conversation
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Run OWASP scanning | ||
run: ./gradlew dependencyCheckAggregate | ||
- name: Upload OWASP scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use resulable workflow
uses: th2-net/.github/.github/workflows/owasp-gradle-scan.yml@main
with:
multiproject: true
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Run OWASP scanning | ||
run: ./gradlew dependencyCheckAggregate | ||
- name: Upload OWASP scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, use reusable workflow instead
allprojects { | ||
apply plugin: 'org.owasp.dependencycheck' | ||
|
||
dependencyCheck { | ||
formats=['SARIF'] | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to apply if for all projects. Just for the root one
No description provided.