-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V3 updates, Trivy fix, QA changes for 291
- Loading branch information
1 parent
6f66c39
commit 6d82b57
Showing
46 changed files
with
742 additions
and
695 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 |
---|---|---|
@@ -1,38 +1,43 @@ | ||
# name: Analysis | ||
name: Analysis | ||
|
||
# on: | ||
# push: | ||
# branches: [main] | ||
# pull_request: | ||
# types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] | ||
# schedule: | ||
# - cron: "0 11 * * 0" # 3 AM PST = 12 PM UDT, runs sundays | ||
# workflow_dispatch: | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review, converted_to_draft] | ||
schedule: | ||
- cron: "29 22 * * 4" | ||
|
||
# concurrency: | ||
# group: ${{ github.workflow }}-${{ github.ref }} | ||
# cancel-in-progress: true | ||
permissions: | ||
contents: read | ||
|
||
# jobs: | ||
# # https://github.com/marketplace/actions/aqua-security-trivy | ||
# trivy: | ||
# name: Trivy Security Scan | ||
# if: ${{ ! github.event.pull_request.draft }} | ||
# runs-on: ubuntu-22.04 | ||
# timeout-minutes: 1 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - name: Run Trivy vulnerability scanner in repo mode | ||
# uses: aquasecurity/trivy-action@0.22.0 | ||
# with: | ||
# format: "sarif" | ||
# output: "trivy-results.sarif" | ||
# ignore-unfixed: true | ||
# scan-type: "fs" | ||
# scanners: "vuln,secret,config" | ||
# severity: "CRITICAL,HIGH" | ||
jobs: | ||
trivy: | ||
permissions: | ||
contents: read | ||
security-events: write | ||
name: Trivy Security Scan | ||
if: ${{ ! github.event.pull_request.draft }} | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 1 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# - name: Upload Trivy scan results to GitHub Security tab | ||
# uses: github/codeql-action/upload-sarif@v3 | ||
# with: | ||
# sarif_file: "trivy-results.sarif" | ||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/trivy-action@0.22.0 | ||
with: | ||
format: "sarif" | ||
output: "trivy-results.sarif" | ||
ignore-unfixed: true | ||
scan-type: "fs" | ||
scanners: "vuln,secret,config" | ||
severity: "CRITICAL,HIGH" | ||
|
||
- name: Print SARIF file | ||
run: cat trivy-results.sarif | ||
|
||
- name: Upload Trivy scan results to GitHub Security tab | ||
uses: github/codeql-action/upload-sarif@v3 | ||
with: | ||
sarif_file: "trivy-results.sarif" |
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 |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
environment: dev | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
node-version: [20.x] | ||
|
||
defaults: | ||
run: | ||
|
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 |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
environment: prod | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
node-version: [20.x] | ||
|
||
defaults: | ||
run: | ||
|
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
environment: test | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
node-version: [20.x] | ||
|
||
defaults: | ||
run: | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore possible issue with empty URI | ||
AVD-AWS-0112 |
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 |
---|---|---|
|
@@ -30,6 +30,7 @@ | |
}, | ||
{ | ||
"sk": "HIST", | ||
"orcs": "NA", | ||
"subAreas": [ | ||
{ | ||
"name": "LEGACY SUBAREA", | ||
|
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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
const REGION = process.env.AWS_REGION || 'local'; | ||
const ENDPOINT = 'http://localhost:8000'; | ||
const REGION = process.env.AWS_REGION || 'local-env'; | ||
const ENDPOINT = 'http://172.17.0.2:8000'; | ||
const TABLE_NAME = process.env.TABLE_NAME || 'ParksAr-tests'; | ||
const CONFIG_TABLE_NAME = process.env.CONFIG_TABLE_NAME || 'ConfigAr-tests'; | ||
const NAME_CACHE_TABLE_NAME = process.env.NAME_CACHE_TABLE_NAME || 'NameCacheAr-tests'; | ||
|
||
|
||
module.exports = { | ||
REGION, | ||
ENDPOINT, | ||
TABLE_NAME, | ||
CONFIG_TABLE_NAME, | ||
NAME_CACHE_TABLE_NAME, | ||
NAME_CACHE_TABLE_NAME | ||
}; | ||
|
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.