-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: synced file(s) with honestbank/.github
- Loading branch information
1 parent
f1df29d
commit b2f075b
Showing
1 changed file
with
30 additions
and
0 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,30 @@ | ||
--- | ||
name: Trivy Security Scan | ||
|
||
# permissions required for the action, restricting to read-only for repository contents. | ||
permissions: | ||
contents: read | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
trivy-security-scan: | ||
name: Run Trivy Security Scan | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: "recursive" # Ensure any submodules are included in the scan. | ||
token: ${{ secrets.ENGINEERING_GITHUB_PERSONAL_ACCESS_TOKEN }} | ||
|
||
# Run Trivy Configuration Scan with specified options. | ||
- name: Run Trivy Security Scan | ||
uses: aquasecurity/trivy-action@0.28.0 | ||
with: | ||
scan-type: 'config' | ||
trivy-config: 'trivy.yaml' |