-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scan argument will just scan folder inside the container? #23
Comments
I think those paths are where the code is checked out, can’t remember by heart. That’s a parameter that can be modified anyway. When you execute it, it will show the absolute path it is using |
|
Ah, i see. I think both . and /github/workspace point to the same place, isnt it? There, it is mounting this as a volume -v "/home/runner/work/DependencyCheck_Test/DependencyCheck_Test":"/github/workspace" Sorry, its been long time since i built this |
Let me clarify it further.
Your executable runs inside the container. The arguments provided to the executable run from the context of inside the container. Now when someone says that their |
you basically need to prefix line 28 with the prefix you have in line 32 (/github/workspace) |
Right ;) fancy doing a pr with the change? thanks |
Looking at the
scan
parameterDependency-Check_Action/action.yml
Lines 27 to 28 in 1b5d19f
If a
.
is provided here (as is the default), won't it just scan the home directory inside the container? github's working directory is mounted at/github/workspace
(as indicated by theout
parameter inDependency-Check_Action/action.yml
Lines 31 to 32 in 1b5d19f
So doesn't
/github/workspace
need to be prefixed toinputs.path
(if it's a relative path), to scan in github's actual workspace?additionally what do you do if someone provides absolute paths (in this case and in the case of
out
)?i can do a pr if needed
The text was updated successfully, but these errors were encountered: