1
0
mirror of https://github.com/securego/gosec.git synced 2025-01-03 22:52:22 +02:00
gosec/entrypoint.sh
Cosmin Cojocar 37d1af0af3 Expand the arguments to a list of strings when they are provided as a single string
The GitHub action provide the arguments as a single string to the docker container,
so we need to expand them in order for gosec to properly interpret them.

Signed-off-by: Cosmin Cojocar <cosmin.cojocar@gmx.ch>
2020-07-06 19:38:49 +02:00

8 lines
206 B
Bash
Executable File

#!/usr/bin/env bash
# Expand the arguments into an array of strings. This is requires because the GitHub action
# provides all arguments concatenated as a single string.
ARGS=("$@")
/bin/gosec ${ARGS[*]}