-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Allow local actions outside the workspace #2108
base: master
Are you sure you want to change the base?
Allow local actions outside the workspace #2108
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2108 +/- ##
===========================================
+ Coverage 61.56% 76.36% +14.79%
===========================================
Files 53 61 +8
Lines 9002 7810 -1192
===========================================
+ Hits 5542 5964 +422
+ Misses 3020 1292 -1728
- Partials 440 554 +114 ☔ View full report in Codecov by Sentry. |
In my opinion is It doesn't look to be far away from |
For this change we're talking about reading an existing In the absence of being able to use contexts within |
Yes we both have different opinions here... the good thing for you is that my opinion alone doesn't prevent merging this. Keep in mind doing this in monorepos has an old unfixed bug when referencing local actions in actions/runner (those action which has post steps, like actions/cache, actions/checkout): actions/runner#2009, input and outputs end up with wrong values...
I'm awaiting the opinion of the other maintainers if they have any, either way you need another review |
Side note bug 2009 in actions/runner also technically allows endless recursion via local composite actions. I assume act has the same bug, however for both local and remote composite actions. |
PR is stale and will be closed in 14 days unless there is new activity |
I’d still like to see this reviewed and merged if possible, I have various actions that use this pattern, and I can’t currently run them under act. I’ll update the PR to resolve the conflicts |
3db5ca9
to
3fc20b5
Compare
@jenseng this pull request has failed checks 🛠 |
Also simplify actionName logic and ensure it returns sensible values for actions outside the workspace (it's only used for logging and docker image name)
3fc20b5
to
94fbf74
Compare
@jenseng this pull request has failed checks 🛠 |
🤔 lint failure seems like a bug in i.e. using golangci-lint@1.53, i get the same failure locally if i do: or: but not if i do: |
Yes only me again, one maintainer left (at least made the information available) after my last message here My concern option B
has not been resolved, so not my turn ( The stale bot seems at this state a bit rough I did downgrade the go syntax in one of my PR's once due to this linter, but your case is different Updating the linter using the version field would pull new lint errors of newer stricter rules I don't really like deal with. |
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'm not a member, but this fixes my test case: https://github.com/check-spelling-sandbox/nektos-act-issue-up-dir, and I see no reason it wouldn't fix my problems with the github/codeql-action repository.
It seems like a reasonable and correct change (to match a behavior upon which GitHub's devs rely).
Fixes #2107
Also simplify
actionName
logic and ensure it returns sensible values for actions outside the workspace (it's only used for logging and docker image name)