-
Notifications
You must be signed in to change notification settings - Fork 550
✨ Add machine-readable patch to fix script injections in workflows #4218
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
Merged
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
b4ec86d
Merge pull request #1 from joycebrum/feature/setup-environment-for-dw…
diogoteles08 5ee165c
Merge pull request #3 from joycebrum/feat/connect-patch-generator-wit…
diogoteles08 bcb159e
Merge pull request #2 from joycebrum/test/initial-tests-for-dw-fix
diogoteles08 5bddd1a
Merge pull request #4 from joycebrum/feat/get-input-needed-to-generat…
joycebrum 488d89a
impl.go: slight refactor to loop
pnacht 93c2fba
Add envvars to existing or new env, still not replaced in `run`
pnacht 0394b86
Replace unsafe variables in run commands, generate git diff
pnacht 3c7f9c6
Rewrite test file
pnacht b299a47
Rewrite patch/impl.go
pnacht 9a5e043
Update test workflows
pnacht 3f8e2af
Use existing envvars, validate patched workflow
pnacht 8b47fdd
Test for same injection in same step, leading to duplicate findings
pnacht c632590
Use existing envvars with different name but same meaning
pnacht 5c986e8
Avoid conflicts with irrelevant but existing envvars
pnacht 6534155
Use first job's indent to define envvar indent
pnacht bf26120
Refactor patch/impl_test
pnacht 31ea054
patch/impl: Simplify unsafePatterns, use errors, docs, lint
pnacht e61d79a
Fix panic in hasScriptInjection test due to missing file
pnacht bbe6c85
Avoid duplicate envvars dealing with array variables
pnacht 09d4b47
Adopt existing inter-block spacing for new env
pnacht 89b73a3
chore: Tidy up function order, remove unused files
pnacht 71d73a4
Define localPath in runScorecard
pnacht 938a59c
Assert valid offset, use TrimSpace, drop unused struct member
pnacht fa8e16b
Just use []bytes instead of string
pnacht 42cf837
Use []byte, not string
pnacht 10e6589
go mod tidy updates
pnacht fb31f93
Ensure valid offset
pnacht d6e4fd1
Move /patch to /internal/patch
pnacht 5a7b390
Document patch behavior and add patch to remediation in def.yml
pnacht 557a1b4
Updates from review
pnacht 892c442
Add patch to finding before adding to list of findings
pnacht bcea7ed
Merge branch 'main' into patch-dw
spencerschrock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.