-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
Remote Taskfiles: redact credentials of remote URLs in prompts and logs #2045
Open
iwittkau
wants to merge
2
commits into
go-task:main
Choose a base branch
from
iwittkau:redact-git-urls
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iwittkau
commented
Feb 6, 2025
pd93
reviewed
Feb 7, 2025
iwittkau
commented
Feb 9, 2025
I've turned this into a draft for now. |
iwittkau
commented
Feb 9, 2025
@@ -122,5 +121,5 @@ func (node *GitNode) ResolveDir(dir string) (string, error) { | |||
} | |||
|
|||
func (node *GitNode) FilenameAndLastDir() (string, string) { | |||
return filepath.Base(node.path), filepath.Base(filepath.Dir(node.path)) | |||
return filepath.Base(filepath.Dir(node.filepath)), filepath.Base(node.filepath) |
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.
taskfile/cache.go
uses it like this:
lastDir, filename := node.FilenameAndLastDir()
03a5551
to
3fc6d75
Compare
Compiling it and running this as a development version actually breaks my own git-based Remote Taskfiles setup 😅 Back to draft, I guess. |
iwittkau
commented
Feb 10, 2025
3fc6d75
to
6a3da1a
Compare
8b53b31
to
8d0a6cd
Compare
8d0a6cd
to
7f6737a
Compare
7f6737a
to
cf8d60b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is to improve #1317.
I've implemented redaction support for the
taskfile.Node
interface, specifically for thetaskfile.GitNode
implementation which was logged with the clear-text user access tokens before.