-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cherry-pick elements for a hotfix release (#1057)
* fix: Trivy TOOMANYREQUESTS GitHub API response by authenticating (#1053) * Trivy hotfix * fix: Abide to the DataOfferCreationRequest.PolicyEnum rule (#1055) * Enable CI on hotfix branches * select hotfix branch explicitly * change to target branch --------- Co-authored-by: Sebastian Opriel <[email protected]>
- Loading branch information
1 parent
6b86ee4
commit ed06072
Showing
14 changed files
with
324 additions
and
44 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
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 |
---|---|---|
|
@@ -10,32 +10,38 @@ jobs: | |
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run license scanner | ||
uses: aquasecurity/trivy-action@master | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
scan-type: "rootfs" | ||
scan-ref: "." | ||
scanners: "license" | ||
severity: "CRITICAL,HIGH" | ||
exit-code: 1 | ||
github-pat: ${{ secrets.GITHUB_TOKEN }} | ||
license_scan2: | ||
name: License scan (repo) | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: npm install (typescript-client) | ||
run: cd extensions/wrapper/clients/typescript-client && npm clean-install | ||
- name: npm install (typescript-client-example) | ||
run: cd extensions/wrapper/clients/typescript-client-example && npm clean-install | ||
- name: Run license scanner | ||
uses: aquasecurity/trivy-action@master | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
scan-type: "repo" | ||
scan-ref: "." | ||
scanners: "license" | ||
severity: "CRITICAL,HIGH" | ||
exit-code: 1 | ||
github-pat: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -17,9 +17,12 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Run vulnerability scanner | ||
uses: aquasecurity/trivy-action@master | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
scan-type: "fs" | ||
exit-code: "1" | ||
ignore-unfixed: true | ||
scanners: secret | ||
github-pat: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -12,29 +12,35 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Run static analysis (rootfs) | ||
uses: aquasecurity/trivy-action@master | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
scan-type: "rootfs" | ||
scanners: "vuln,misconfig" | ||
ignore-unfixed: true | ||
format: "sarif" | ||
output: "trivy-results-rootfs.sarif" | ||
severity: "CRITICAL,HIGH" | ||
github-pat: ${{ secrets.GITHUB_TOKEN }} | ||
security_scan_repo: | ||
name: security_scan_repo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Run static analysis (repo) | ||
uses: aquasecurity/trivy-action@master | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
scan-type: "repo" | ||
scanners: "vuln,misconfig" | ||
ignore-unfixed: true | ||
format: "sarif" | ||
output: "trivy-results-repo.sarif" | ||
severity: "CRITICAL,HIGH" | ||
github-pat: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Upload Trivy scan results to GitHub Security tab (repo) | ||
uses: github/codeql-action/upload-sarif@v2 | ||
continue-on-error: true | ||
|
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 |
---|---|---|
|
@@ -12,17 +12,20 @@ jobs: | |
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run static analysis | ||
uses: aquasecurity/trivy-action@master | ||
uses: aquasecurity/[email protected] | ||
env: | ||
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2 | ||
with: | ||
scan-type: 'fs' | ||
security-checks: 'vuln,secret,config' | ||
ignore-unfixed: true | ||
format: 'sarif' | ||
output: 'trivy-results.sarif' | ||
severity: 'CRITICAL' | ||
github-pat: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
|
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
Oops, something went wrong.