-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: exchange versions with pinned commits (#598)
## Description exchange versions with pinned commits
- Loading branch information
Showing
11 changed files
with
117 additions
and
69 deletions.
There are no files selected for viewing
This file contains 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,80 @@ | ||
name: Blackduck SCA Scan | ||
on: | ||
#push: | ||
# branches: [ "main" ] | ||
#pull_request: | ||
# branches: [ "main" ] | ||
schedule: | ||
- cron: '8 0 * * 0' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
checks: write | ||
|
||
jobs: | ||
build: | ||
runs-on: [ ubuntu-latest ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 | ||
with: | ||
go-version-file: '${{ github.workspace }}/go.mod' | ||
cache: false | ||
|
||
- name: Get go environment for use with cache | ||
run: | | ||
echo "go_cache=$(go env GOCACHE)" >> $GITHUB_ENV | ||
echo "go_modcache=$(go env GOMODCACHE)" >> $GITHUB_ENV | ||
# This step will only reuse the go mod and build cache from main made during the Build, | ||
# see push_ocm.yaml => "ocm-cli-latest" Job | ||
# This means it never caches by itself and PRs cannot cause cache pollution / thrashing | ||
# This is because we have huge storage requirements for our cache because of the mass of dependencies | ||
|
||
- name: Restore / Reuse Cache from central build | ||
id: cache-golang-restore | ||
uses: actions/cache/restore@0c907a75c2c80ebcb7f088228285e798b750cf8f # Only Restore, not build another cache (too big) | ||
with: | ||
path: | | ||
${{ env.go_cache }} | ||
${{ env.go_modcache }} | ||
key: ${{ env.cache_name }}-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/go.mod') }} | ||
restore-keys: | | ||
${{ env.cache_name }}-${{ runner.os }}-go- | ||
env: | ||
cache_name: ocm-cli-latest-go-cache # needs to be the same key in the end as in the build step | ||
|
||
- name: Run Black Duck Full SCA Scan (Manual Trigger and Scheduled) | ||
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' | ||
uses: blackduck-inc/black-duck-security-scan@805cbd09e806b01907bbea0f990723c2bb85abe9 | ||
env: | ||
DETECT_PROJECT_USER_GROUPS: opencomponentmodel | ||
DETECT_PROJECT_VERSION_DISTRIBUTION: opensource | ||
DETECT_SOURCE_PATH: ./ | ||
DETECT_EXCLUDED_DIRECTORIES: .bridge | ||
DETECT_BLACKDUCK_SIGNATURE_SCANNER_ARGUMENTS: '--min-scan-interval=0' | ||
NODE_TLS_REJECT_UNAUTHORIZED: true | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
blackducksca_url: ${{ secrets.BLACKDUCK_URL }} | ||
blackducksca_token: ${{ secrets.BLACKDUCK_API_TOKEN }} | ||
blackducksca_scan_full: true | ||
|
||
- name: Run Black Duck SCA Scan (Pull Request or Push) | ||
if: github.event_name != 'workflow_dispatch' | ||
# The action sets blackducksca_scan_full internally: for pushes to true and PRs to false | ||
uses: blackduck-inc/black-duck-security-scan@805cbd09e806b01907bbea0f990723c2bb85abe9 | ||
env: | ||
DETECT_PROJECT_USER_GROUPS: opencomponentmodel | ||
DETECT_PROJECT_VERSION_DISTRIBUTION: opensource | ||
DETECT_SOURCE_PATH: ./ | ||
DETECT_EXCLUDED_DIRECTORIES: .bridge | ||
NODE_TLS_REJECT_UNAUTHORIZED: true | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
blackducksca_url: ${{ secrets.BLACKDUCK_URL }} | ||
blackducksca_token: ${{ secrets.BLACKDUCK_API_TOKEN }} | ||
blackducksca_prComment_enabled: true |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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