Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

fix: mount credentials on cargo audit #199

Merged
merged 1 commit into from
Mar 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down