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

Update step-security/harden-runner configuration #1246

Merged
merged 1 commit into from
Jul 14, 2024

Conversation

Stephan202
Copy link
Member

@Stephan202 Stephan202 commented Jul 13, 2024

Based on this report.

Suggested commit message:

Update `step-security/harden-runner` configuration (#1246)

While apparently the build doesn't fail without this, it is reasonable
for SonarCloud analysis to access the `api.sonarcloud.io` domain.

@Stephan202 Stephan202 added this to the 0.17.0 milestone Jul 13, 2024
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link
Contributor

@mohamedsamehsalah mohamedsamehsalah left a comment

Choose a reason for hiding this comment

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

🔒

While apparently the build doesn't fail without this, it is reasonable
for SonarCloud analysis to access the `api.sonarcloud.io` domain.
@rickie rickie force-pushed the sschroevers/update-security-harden-config branch from 82c739d to dc5adb9 Compare July 14, 2024 12:01
@rickie rickie added the chore A task not related to code (build, formatting, process, ...) label Jul 14, 2024
Copy link

Looks good. No mutations were possible for these changes.
Mutation testing report by Pitest. Review any surviving mutants by inspecting the line comments under Files changed.

Copy link

@rickie rickie merged commit 8daedcc into master Jul 14, 2024
15 checks passed
@rickie rickie deleted the sschroevers/update-security-harden-config branch July 14, 2024 12:11
@varunsh-coder
Copy link

Stumbed upon this PR today.
I looked up https://docs.sonarsource.com/sonarcloud/administering-sonarcloud/advanced-administration/#domain-whitelists and the one you added is listed there
it also mentions analysis-sensorcache-eu-central-1-prod.s3.amazonaws.com

BTW harden-runner allows use of wildcards as well, so you can also use *.sonarcloud.io if you want.

@Stephan202
Copy link
Member Author

Hey @varunsh-coder! Great timing; I received an email about this a few days ago, and had just started work on #1271 😄 The wildcard is a good idea; will consider 💪

@Stephan202
Copy link
Member Author

Ah, question then: I suppose that *.sonarcloud.io won't capture sonarcloud.io, right? (And similarly for *.github.com and github.com.)

@varunsh-coder
Copy link

Right. You will need to specify both *.sonarcloud.io and sonarcloud.io if you want to allow api.sonarcloud.io (and similar subdomains) and sonarcloud.io.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A task not related to code (build, formatting, process, ...)
Development

Successfully merging this pull request may close these issues.

4 participants