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

Workflow security fixes #4996

Merged
merged 3 commits into from
Oct 14, 2022
Merged

Workflow security fixes #4996

merged 3 commits into from
Oct 14, 2022

Conversation

CarinaWolli
Copy link
Member

What does this PR do?

Fixes some security issues when updating workflows.

Environment: Staging(main branch)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@vercel
Copy link

vercel bot commented Oct 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cal ✅ Ready (Inspect) Visit Preview Oct 14, 2022 at 9:39AM (UTC)

@@ -644,11 +649,7 @@ export const workflowsRouter = createProtectedRouter()
const addedSteps = steps.map((s) => {
if (s.id <= 0) {
const { id: stepId, ...stepToAdd } = s;
if (stepToAdd.workflowId === id) {
Copy link
Member Author

Choose a reason for hiding this comment

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

we are checking already at the beginning if all steps belong to the workflow

Copy link
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

LGTM, no comments really - looks like the right way to fix 👍

@emrysal emrysal merged commit 88cad2e into main Oct 14, 2022
@emrysal emrysal deleted the fix/workflow-security branch October 14, 2022 09:52
@PeerRich PeerRich added the core area: core, team members only label Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core area: core, team members only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants