|
11 | 11 | schedule: |
12 | 12 | - cron: '0 18 * * *' # scheduled to run at 18:00 UTC every day |
13 | 13 | workflow_dispatch: # be able to run the workflow on demand |
| 14 | + push: |
| 15 | + branches: |
| 16 | + - test-release |
14 | 17 |
|
15 | 18 | env: |
16 | 19 | AWS_DEFAULT_REGION: us-east-1 |
@@ -61,36 +64,36 @@ jobs: |
61 | 64 | parse-json-secrets: true |
62 | 65 |
|
63 | 66 | # 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 |
79 | 82 |
|
80 | 83 | - name: Perform high image scan |
81 | 84 | if: always() |
82 | 85 | id: high_scan |
83 | 86 | uses: ./.github/actions/image_scan |
84 | 87 | 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" |
86 | 89 | severity: 'CRITICAL,HIGH' |
87 | 90 |
|
88 | 91 | - name: Perform low image scan |
89 | 92 | if: always() |
90 | 93 | id: low_scan |
91 | 94 | uses: ./.github/actions/image_scan |
92 | 95 | 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" |
94 | 97 | severity: 'MEDIUM,LOW,UNKNOWN' |
95 | 98 |
|
96 | 99 | - name: Configure AWS Credentials for emitting metrics |
|
0 commit comments