-
Notifications
You must be signed in to change notification settings - Fork 3
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
chore: update witness.yml with workingdir input #16
base: reusable-workflow
Are you sure you want to change the base?
Conversation
306b71b
to
e229e82
Compare
@georgesdugue and I found more issues with this. Because of the conditional on working through some more fixes |
c3d9089
to
6bea697
Compare
Added a new 'workingdir' input to the GitHub Actions workflow. This allows for specifying the working directory when running commands. The changes include: - Added 'workingdir' as an optional input in the workflow_call section. - Updated testifysec/witness-run-action usage to include 'workingdir'. - Set 'working-directory' for run commands when pull_request is true. This enhancement provides more flexibility in configuring workflows, especially when dealing with projects that have complex structures or require specific execution contexts.
c237f2e
to
d5390fb
Compare
worked through the issues
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was anything actually changed in this file other than whitespace/formatting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the default value ./
from witness-install-dir
because it was already being handled in code.
I also changed how it was being handled so now it works with or without workingdir
, you can see this being handled in index.js
@@ -154,22 +136,22 @@ async function run() { | |||
|
|||
if (trace) cmd.push(`--trace=${trace}`); | |||
if (outfile) cmd.push(`--outfile=${outfile}`); | |||
core.info("Running in directory " + process.env.GITHUB_WORKSPACE); | |||
core.info('Running in directory ' + fullWorkspacePath); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these the only "real" changes in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this and lines 12-14
I found workingdir
was defined but wasn't being used.
default: 'https://archivista.testifysec.io' | ||
required: false | ||
type: string | ||
workingdir: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh @jkjell I also had to add workingdir
here, it was missing here too
changes to get workingdir working with john's reusable workflow branch
@jkjell we have this and one other PR on your reusable workflow branch. Total that's 3 prs not merged to main that we're using in one place or another. We should get those all merged before we lose track.