mirror of
https://github.com/carhartl/talisman-secrets-scan-action.git
synced 2024-12-04 13:27:27 +00:00
Setup container to run talisman
Mimicing a pre-push hook, where refs and shas need to passed in as arguments.
This commit is contained in:
commit
fbca4983a5
2 changed files with 13 additions and 0 deletions
8
Dockerfile
Normal file
8
Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
FROM alpine:3.13.6
|
||||
|
||||
ADD ["https://github.com/thoughtworks/talisman/releases/download/v1.22.0/talisman_linux_amd64", "/talisman"]
|
||||
RUN chmod +x /talisman
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
5
entrypoint.sh
Executable file
5
entrypoint.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh -l
|
||||
|
||||
set -e
|
||||
|
||||
sh -c "echo $* | /talisman"
|
Loading…
Reference in a new issue