From dce35f46a91f0b366a755385b71f7283b16acdee Mon Sep 17 00:00:00 2001 From: Thiago Nobayashi Date: Tue, 28 Mar 2023 09:05:07 -0300 Subject: [PATCH] fix: mount credentials on cargo audit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 250d9cdc8..8ad4688c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,7 +37,8 @@ RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \ cargo clippy --all --tests FROM base AS audit -RUN cargo install cargo-audit --locked +RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \ + cargo install cargo-audit --locked COPY . . RUN cargo audit