Skip to content

Conversation

@petruki
Copy link
Member

@petruki petruki commented Sep 22, 2024

No description provided.

@petruki petruki added this to the v1.2.8 milestone Sep 22, 2024
@petruki petruki self-assigned this Sep 22, 2024
const result = await Service.pushChanges(req.domain, req.body.environment, req.body.changes);

if (!result.valid) {
return res.status(400).send(result);

Check failure

Code scanning / SonarCloud

Endpoints should not be vulnerable to reflected cross-site scripting (XSS) attacks

<!--SONAR_ISSUE_KEY:AZIYQ9u7-3KyDXNKbUYP-->Change this code to not reflect user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=switcherapi_switcher-api&issues=AZIYQ9u7-3KyDXNKbUYP&open=AZIYQ9u7-3KyDXNKbUYP&pullRequest=519">SonarCloud</a></p>
return res.status(400).send(result);
}

res.status(200).send(result);

Check failure

Code scanning / SonarCloud

Endpoints should not be vulnerable to reflected cross-site scripting (XSS) attacks

<!--SONAR_ISSUE_KEY:AZIYQ9u7-3KyDXNKbUYQ-->Change this code to not reflect user-controlled data. <p>See more on <a href="https://sonarcloud.io/project/issues?id=switcherapi_switcher-api&issues=AZIYQ9u7-3KyDXNKbUYQ&open=AZIYQ9u7-3KyDXNKbUYQ&pullRequest=519">SonarCloud</a></p>
@sonarqubecloud
Copy link

@petruki petruki merged commit e6009a7 into master Sep 22, 2024
@petruki petruki deleted the staging branch September 22, 2024 05:51
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