1
0
Fork 0
mirror of https://github.com/docker/build-push-action.git synced 2025-04-22 14:46:39 +02:00

ci: secret job to check for invalid secrets

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-10-09 17:39:54 +02:00
parent 871b930e7a
commit 47c00d78bf
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
3 changed files with 28 additions and 2 deletions

4
test/secret.Dockerfile Normal file
View file

@ -0,0 +1,4 @@
# syntax=docker/dockerfile:1
FROM busybox
RUN --mount=type=secret,id=MYSECRET \
echo "MYSECRET=$(cat /run/secrets/MYSECRET)"