Skip to content
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

Replace interpolated context variables with defaults. #320

Merged
merged 6 commits into from
Aug 3, 2023

Conversation

jackdawm
Copy link
Contributor

@jackdawm jackdawm commented Aug 3, 2023

What was changed

Replace interpolated github context variables with default variables used more defensively.

Why?

This mitigates an attacker naming a branch a command that could run in our runner's context.

Checklist

How was this tested:
Looked at the output of the CI job and it was fine, as it has been in temporalio/api-go#115

@jackdawm jackdawm marked this pull request as ready for review August 3, 2023 21:19
@@ -95,4 +95,4 @@ jobs:

- name: Tear down docker compose
if: inputs.docker-image-artifact-name && (success() || failure())
run: docker-compose -f /tmp/server-docker/docker-compose.yml -f ./dockerfiles/docker-compose.for-server-image.yaml down -v
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what happened here 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it may just be end-of-file newline change. Harmless I think.

Copy link
Member

@cretz cretz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@cretz cretz merged commit 7b56ed0 into main Aug 3, 2023
14 checks passed
@cretz cretz deleted the run-shell-injection branch August 3, 2023 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants