Skip to content

Commit 30288e1

Browse files
committed
Test main branch
1 parent 88e4ee7 commit 30288e1

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

.github/workflows/daily_scan.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
schedule:
1212
- cron: '0 18 * * *' # scheduled to run at 18:00 UTC every day
1313
workflow_dispatch: # be able to run the workflow on demand
14+
push:
15+
branches:
16+
- test-release
1417

1518
env:
1619
AWS_DEFAULT_REGION: us-east-1
@@ -61,36 +64,36 @@ jobs:
6164
parse-json-secrets: true
6265

6366
# See http://jeremylong.github.io/DependencyCheck/dependency-check-cli/ for installation explanation
64-
- name: Install and run dependency scan
65-
id: dep_scan
66-
if: always()
67-
run: |
68-
gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 259A55407DD6C00299E6607EFFDE55BE73A2D1ED
69-
VERSION=$(curl -s https://jeremylong.github.io/DependencyCheck/current.txt | head -n1 | cut -d' ' -f1)
70-
curl -Ls "https://github.com/dependency-check/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip" --output dependency-check.zip
71-
curl -Ls "https://github.com/dependency-check/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip.asc" --output dependency-check.zip.asc
72-
gpg --verify dependency-check.zip.asc
73-
unzip dependency-check.zip
74-
./dependency-check/bin/dependency-check.sh --enableExperimental --suppression .github/dependency-check-suppressions.xml --failOnCVSS 0 --nvdApiKey ${{ env.NVD_API_KEY_NVD_API_KEY }} -s aws-opentelemetry-distro/
75-
76-
- name: Print dependency scan results on failure
77-
if: ${{ steps.dep_scan.outcome != 'success' }}
78-
run: less dependency-check-report.html
67+
# - name: Install and run dependency scan
68+
# id: dep_scan
69+
# if: always()
70+
# run: |
71+
# gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 259A55407DD6C00299E6607EFFDE55BE73A2D1ED
72+
# VERSION=$(curl -s https://jeremylong.github.io/DependencyCheck/current.txt | head -n1 | cut -d' ' -f1)
73+
# curl -Ls "https://github.com/dependency-check/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip" --output dependency-check.zip
74+
# curl -Ls "https://github.com/dependency-check/DependencyCheck/releases/download/v$VERSION/dependency-check-$VERSION-release.zip.asc" --output dependency-check.zip.asc
75+
# gpg --verify dependency-check.zip.asc
76+
# unzip dependency-check.zip
77+
# ./dependency-check/bin/dependency-check.sh --enableExperimental --suppression .github/dependency-check-suppressions.xml --failOnCVSS 0 --nvdApiKey ${{ env.NVD_API_KEY_NVD_API_KEY }} -s aws-opentelemetry-distro/
78+
79+
# - name: Print dependency scan results on failure
80+
# if: ${{ steps.dep_scan.outcome != 'success' }}
81+
# run: less dependency-check-report.html
7982

8083
- name: Perform high image scan
8184
if: always()
8285
id: high_scan
8386
uses: ./.github/actions/image_scan
8487
with:
85-
image-ref: "public.ecr.aws/aws-observability/adot-autoinstrumentation-python:v0.9.0"
88+
image-ref: "637423224110.dkr.ecr.us-east-1.amazonaws.com/aws-observability/adot-autoinstrumentation-python-staging:0.9.0.dev0-88e4ee7"
8689
severity: 'CRITICAL,HIGH'
8790

8891
- name: Perform low image scan
8992
if: always()
9093
id: low_scan
9194
uses: ./.github/actions/image_scan
9295
with:
93-
image-ref: "public.ecr.aws/aws-observability/adot-autoinstrumentation-python:v0.9.0"
96+
image-ref: "637423224110.dkr.ecr.us-east-1.amazonaws.com/aws-observability/adot-autoinstrumentation-python-staging:0.9.0.dev0-88e4ee7"
9497
severity: 'MEDIUM,LOW,UNKNOWN'
9598

9699
- name: Configure AWS Credentials for emitting metrics

0 commit comments

Comments
 (0)