mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 19:45:51 +00:00
37d1af0af3
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>
7 lines
206 B
Bash
Executable file
7 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[*]}
|