-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Create black-duck-security-scan template #2676
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
1cc1562
Added Black-Duck-Security-Scan logo
sadmananik 4a84ccf
Added black duck security scan action template
sadmananik 1c8781f
Merge pull request #1 from blackduck-inc/blackducksecurityscan-template
sadmananik 84747ed
Used hash instead of tag name
sadmananik 9e76f84
Merge pull request #2 from blackduck-inc/blackducksecurityscan-template
sadmananik 56844b1
Merge branch 'main' into main
sadmananik 1de3a14
Update black-duck-security-scan-ci.yml
sadmananik 51a27e7
Merge branch 'main' into main
sadmananik 5969feb
Resolved reviwed comments
sadmananik 345594d
Updated actions/checkout v3 to v4
sadmananik fcdc128
Fixed Linting Issues
sadmananik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI-Black-Duck-Security-Scan | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
on: | ||
push: | ||
branches: [ $default-branch ] | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pull_request: | ||
branches: [ $default-branch ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
steps: | ||
- name: Checkout Source | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uses: actions/checkout@v3 | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Black Duck SCA Scan | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
uses: blackduck-inc/[email protected] | ||
sadmananik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
with: | ||
### ---------- BLACKDUCK SCA SCANNING: REQUIRED FIELDS ---------- | ||
blackducksca_url: ${{ vars.BLACKDUCKSCA_URL }} | ||
blackducksca_token: ${{ secrets.BLACKDUCKSCA_TOKEN }} | ||
|
||
### ---------- COVERITY SCANNING: REQUIRED FIELDS ---------- | ||
coverity_url: ${{ vars.COVERITY_URL }} | ||
coverity_user: ${{ secrets.COVERITY_USER }} | ||
coverity_passphrase: ${{ secrets.COVERITY_PASSPHRASE }} | ||
|
||
### ---------- POLARIS SCANNING: REQUIRED FIELDS ---------- | ||
polaris_server_url: ${{ vars.POLARIS_SERVER_URL }} | ||
polaris_access_token: ${{ secrets.POLARIS_ACCESS_TOKEN }} | ||
polaris_assessment_types: "SCA,SAST" | ||
|
||
### ---------- SRM SCANNING: REQUIRED FIELDS ---------- | ||
srm_url: ${{ vars.SRM_URL }} | ||
srm_apikey: ${{ secrets.SRM_API_KEY }} | ||
srm_assessment_types: "SCA,SAST" | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
21 changes: 21 additions & 0 deletions
21
code-scanning/properties/black-duck-security-scan-ci.properties.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"name": "Black Duck Security Scan Workflow", | ||
"description": "The Black Duck Security Scan GitHub Action allows you to configure your pipeline to run Black Duck Security Scan and take action on the security results", | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"iconName": "black-duck-icon.png", | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"categories": [ | ||
"Code Scanning", | ||
"C", | ||
"C++", | ||
"C#", | ||
"Go", | ||
"Java", | ||
"JavaScript", | ||
"Ruby", | ||
"PHP", | ||
"Swift", | ||
"Kotlin", | ||
"Python", | ||
"VB.NET", | ||
"Objective C" | ||
] | ||
} | ||
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
AlexDeMichieli marked this conversation as resolved.
Show resolved
Hide resolved
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.