Skip to content

Commit be4e8ed

Browse files
author
Makoto Koishi
committed
Switch scanner to BlackDuck
1 parent 90854ec commit be4e8ed

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

.github/workflows/synopsys.yml

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,25 @@ jobs:
1717
- name: Synopsys Action
1818
uses: synopsys-sig/synopsys-action@main
1919
with:
20-
coverity_url: ${{ secrets.COVERITY_URL }}
21-
coverity_user: ${{ secrets.COVERITY_USER }}
22-
coverity_passphrase: ${{ secrets.COVERITY_PASSPHRASE }}
23-
# Many customers prefer to set their Coverity project and stream names to match
24-
# the GitHub repository name
25-
coverity_project_name: ${{ secrets.COVERITY_PROJECT_NAME }}
26-
coverity_stream_name: ${{ github.event.repository.name }}
27-
# Optionally you may specify the ID number of a saved view to apply as a "break the build" policy.
28-
# If any defects are found within this view when applied to the project, the build will be failed
29-
# with an exit code.
30-
#coverity_policy_view: 100001
31-
# Below fields are optional
32-
coverity_repository_name: ${{ secrets.COVERITY_REPOSITORY_NAME }}
33-
coverity_branch_name: ${{ secrets.COVERITY_BRANCH_NAME }}
34-
35-
# Optional parameter to specify path to synopsys bridge.
36-
# This can be used if you want to pre-configure your GitHub Runner with the
37-
# Synopsys Bridge software
38-
# The default is either /{user_home}/synopsys-bridge or in linux /usr/synopsys-bridge
39-
#synopsys_bridge_path: "/path_to_bridge_executable"
20+
blackduck_apiToken: ${{ secrets.BLACKDUCK_API_TOKEN }}
21+
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
22+
23+
# Optional parameter. By default, pushes will initiate a full "intelligent" scan and pull requests
24+
# will initiate a rapid scan.
25+
blackduck_scan_full: false
26+
# Required parameter if blackduck_automation_fixpr is enabled
27+
# Make sure GITHUB_TOKEN have appropriate permissions
28+
github_token: ${{ secrets.GH_TOKEN }}
29+
# Optional parameter. By default, create fix pull requests if vulnerabilities are reported
30+
# Passing false will disable fix pull request creation
31+
blackduck_automation_fixpr: true
32+
# Optional parameter. The values could be. ALL|NONE|BLOCKER|CRITICAL|MAJOR|MINOR|OK|TRIVIAL|UNSPECIFIED
33+
# Single parameter
34+
blackduck_scan_failure_severities: "[\"ALL\"]"
35+
# multiple parameters
36+
# blackduck_scan_failure_severities: "[\"BLOCKER\", \"CRITICAL\", \"TRIVIAL\"]"
4037

4138
# Optional parameter, but usually specified - the location of the Synopsys Bridge software
4239
# The Synopsys Bridge software distribution is platform specific - this must match the host OS
4340
# of your runner. For example in this case, we are using the latest version for Linux.
4441
bridge_download_url: ${{ env.LINUX_BRIDGE_URL }}
45-
env:
46-
LINUX_BRIDGE_URL: "https://sig-repo.synopsys.com/artifactory/bds-integrations-release/com/synopsys/integration/synopsys-action/0.1.72/ci-package-0.1.72-linux64.zip"

0 commit comments

Comments
 (0)