Skip to content
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

Disable alibaba secret scanning #342

Merged
merged 4 commits into from
Jun 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/ci-vulnerability-scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,16 @@ jobs:
with:
scan-type: image
image-ref: ${{ steps.build-image.outputs.image }}
format: json
format: table
exit-code: 1
ignore-unfixed: true
vuln-type: os
scanners: vuln,secret
output: trivy_results.json

- name: Save output to workflow summary
if: always() # Runs even if there is a failure
run: |
echo "```json" >> $GITHUB_STEP_SUMMARY
cat trivy_results.json >> $GITHUB_STEP_SUMMARY
echo "```" >> $GITHUB_STEP_SUMMARY
echo "View results in GitHub Action logs" >> $GITHUB_STEP_SUMMARY

anchore-scan:
runs-on: ubuntu-latest
Expand All @@ -100,7 +97,7 @@ jobs:
- name: Save output to workflow summary
if: always() # Runs even if there is a failure
run: |
echo "Click on the anchore-scan job in the top left Jobs section to view the results" >> $GITHUB_STEP_SUMMARY
echo "View results in GitHub Action logs" >> $GITHUB_STEP_SUMMARY

dockle-scan:
runs-on: ubuntu-latest
Expand Down
21 changes: 21 additions & 0 deletions trivy-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Trivy recommends specifying either enable-builin-rules or disable-rules
# See https://aquasecurity.github.io/trivy/v0.27.1/docs/secret/configuration/
# For list of all available rules, see
# https://github.com/aquasecurity/fanal/blob/main/secret/builtin-rules.go
enable-builtin-rules:
- aws-access-key-id
- aws-account-id
- aws-secret-access-key
- github-pat
- github-oauth
- github-app-token
- github-refresh-token
- gitlab-pat
- private-key
- slack-access-token
- slack-web-hook
- atlassian-api-token
- hashicorp-tf-api-token
- new-relic-user-api-key
- new-relic-user-api-id
- new-relic-browser-api-token