Skip to content

Commit c497b4e

Browse files
Senan JudeSenan Jude
authored andcommitted
added container scanning to attribute-service repo
1 parent 328273f commit c497b4e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/pr-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ jobs:
4242
with:
4343
args: build dockerBuildImages
4444

45+
- name: Determine docker tag
46+
id: tag
47+
run: echo ::set-output name=tag::$(./gradlew -q printDockerImageDefaultTag | head -1)
48+
49+
- name: Scan docker image
50+
uses: azure/[email protected]
51+
with:
52+
image-name: hypertrace/attribute-service:${{ steps.tag.outputs.tag }}
53+
env:
54+
DOCKLE_HOST: "unix:///var/run/docker.sock"
55+
continue-on-error: true
56+
4557
validate-helm-charts:
4658
runs-on: ubuntu-20.04
4759
steps:

attribute-service/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ plugins {
99
java
1010
application
1111
jacoco
12-
id("org.hypertrace.docker-java-application-plugin") version "0.9.0"
13-
id("org.hypertrace.docker-publish-plugin") version "0.9.0"
12+
id("org.hypertrace.docker-java-application-plugin") version "0.9.4"
13+
id("org.hypertrace.docker-publish-plugin") version "0.9.4"
1414
id("org.hypertrace.integration-test-plugin")
1515
id("org.hypertrace.jacoco-report-plugin")
1616
}

0 commit comments

Comments
 (0)