Skip to content

Commit

Permalink
update opentofu dockerfile user
Browse files Browse the repository at this point in the history
  • Loading branch information
seemywingz committed Dec 19, 2024
1 parent 145b352 commit 693ca99
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dockerfiles/harness/opentofu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ FROM $TOFU_IMAGE as tofu
FROM $HARNESS_BASE_IMAGE as final

Check warning

Code scanning / Trivy

':latest' tag used Medium

Artifact: dockerfiles/harness/opentofu.Dockerfile
Type: dockerfile
Vulnerability DS001
Severity: MEDIUM
Message: Specify a tag in the 'FROM' statement for image 'harness-base'
Link: DS001

Check warning

Code scanning / Trivy

':latest' tag used Medium

Artifact: dockerfiles/harness/opentofu.Dockerfile
Type: dockerfile
Vulnerability DS001
Severity: MEDIUM
Message: Specify a tag in the 'FROM' statement for image 'sha-1eca71e'
Link: DS001

COPY --from=tofu /usr/local/bin/tofu /bin/terraform

# Switch to the non-root user
USER 65532:65532

0 comments on commit 693ca99

Please sign in to comment.