Skip to content

Commit

Permalink
ci: fix trivy action in ci.yaml (#64)
Browse files Browse the repository at this point in the history
* ci: fix trivy action in ci.yaml

* updated images

[skip ci]
  • Loading branch information
chgl authored Aug 10, 2023
1 parent 468f602 commit ec70bb7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
cache-to: type=gha,mode=max

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe # tag=v0.7.1
uses: aquasecurity/trivy-action@41f05d9ecffa2ed3f1580af306000f734b733e54 # 0.11.2
with:
image-ref: ${{ fromJson(steps.container_meta.outputs.json).tags[0] }}
severity: "CRITICAL,HIGH"
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.4
FROM mcr.microsoft.com/dotnet/nightly/aspnet:7.0-jammy-chiseled@sha256:829ccddb852634bc80eda51515c3879ce07a243ae8382ceb8b3eae1f2b4dff53 AS runtime
FROM mcr.microsoft.com/dotnet/nightly/aspnet:7.0.9-jammy-chiseled@sha256:d612147bddd8753f0da14e073e6d3d567e0138e38e622250c60e565046632b77 AS runtime
WORKDIR /opt/vfps
EXPOSE 8080/tcp 8081/tcp 8082/tcp
USER 65534:65534
Expand All @@ -9,7 +9,7 @@ ENV DOTNET_ENVIRONMENT="Production" \
ASPNETCORE_URLS="" \
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/tmp

FROM mcr.microsoft.com/dotnet/sdk:7.0-jammy@sha256:d689d003f80516786e561298e862217537c073bb3f6207573b5fdb2a8ef840f8 AS build
FROM mcr.microsoft.com/dotnet/sdk:7.0.400-jammy@sha256:37d079e1a4f1329a428ecc49b21c26a3b900ce93c1a6931e4569754ae7cf69ac AS build
WORKDIR /build
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1 \
PATH="/root/.dotnet/tools:${PATH}"
Expand Down

0 comments on commit ec70bb7

Please sign in to comment.