Skip to content

Commit 3885821

Browse files
authored
Updated daily scan to use v1.7.0 ECR image (#207)
1 parent 9ed1cbd commit 3885821

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/daily_scan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ jobs:
7070
id: high_scan
7171
uses: ./.github/actions/image_scan
7272
with:
73-
image-ref: "public.ecr.aws/aws-observability/adot-autoinstrumentation-dotnet:v1.3.2"
73+
image-ref: "public.ecr.aws/aws-observability/adot-autoinstrumentation-dotnet:v1.7.0"
7474
severity: 'CRITICAL,HIGH'
7575

7676
- name: Perform low image scan
7777
if: always()
7878
id: low_scan
7979
uses: ./.github/actions/image_scan
8080
with:
81-
image-ref: "public.ecr.aws/aws-observability/adot-autoinstrumentation-dotnet:v1.3.2"
81+
image-ref: "public.ecr.aws/aws-observability/adot-autoinstrumentation-dotnet:v1.7.0"
8282
severity: 'MEDIUM,LOW,UNKNOWN'
8383

8484
- name: Configure AWS Credentials for emitting metrics

.github/workflows/post_release_version_bump.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,15 @@ jobs:
9494
git checkout -b "prepare-main-for-next-dev-cycle-${VERSION}" origin/$RELEASE_BRANCH
9595
9696
- name: Update version to next development version in main
97-
# TODO update version in daily_scan.yml
9897
run: |
9998
DEV_VERSION="${{ github.event.inputs.version }}.dev0"
10099
sed -i "s/public static string version = \".*\";/public static string version = \"${DEV_VERSION}\";/" src/AWS.Distro.OpenTelemetry.AutoInstrumentation/Version.cs
101100
sed -i "s/private readonly string version = \".*\";/private readonly string version = \"${DEV_VERSION}\";/" build/Build.InstallationScripts.cs
102101
VERSION="${{ github.event.inputs.version }}"
102+
sed -i -e 's/dotnet:v.*"/dotnet:v'$VERSION'"/' .github/workflows/daily_scan.yml
103103
git add src/AWS.Distro.OpenTelemetry.AutoInstrumentation/Version.cs
104104
git add build/Build.InstallationScripts.cs
105+
git add .github/workflows/daily_scan.yml
105106
git commit -m "Prepare main for next development cycle: Update version to $DEV_VERSION"
106107
git push --set-upstream origin "prepare-main-for-next-dev-cycle-${VERSION}"
107108

0 commit comments

Comments
 (0)