diff --git a/action.yml b/action.yml index 2f53b80..c5f6016 100644 --- a/action.yml +++ b/action.yml @@ -4,7 +4,6 @@ inputs: source: description: "Path to the source directory to run analysis on." required: false - default: /source/src phpstan-config: # path to the php stan config to use description: "Path to the phpstan.neon configuration file." required: false diff --git a/entrypoint.sh b/entrypoint.sh index 1a20bd9..5579732 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,6 +3,8 @@ # if path to analyze is provided we symlink it to /source so the default phpstan config works if [ ! -z "$1" ]; then sh -c "ln -s $1 /source" +else # if no custom path is specified we symlink the default checkout location to /source + sh -c "ln -s /github/workflow /source" fi sh -c "analyze $*" \ No newline at end of file