Skip to content

feat(codecov): Add step 3 steps for TA onboarding #93726

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

calvin-codecov
Copy link
Contributor

@calvin-codecov calvin-codecov commented Jun 17, 2025

Closes https://linear.app/getsentry/issue/CCMRG-142/test-analytics-onboarding-gh-actions-repo-token-step-3
https://linear.app/getsentry/issue/CCMRG-138/test-analytics-onboarding-gh-actions-oidc-step-3
https://linear.app/getsentry/issue/CCMRG-440/cli-binary-step-3-install-cli-via-binary
https://linear.app/getsentry/issue/CCMRG-439/cli-pip-step-3-install-cli-via-pip
https://linear.app/getsentry/issue/CCMRG-436/gh-actions-repo-token-step-3-add-prevent-action-to-yaml
https://linear.app/getsentry/issue/CCMRG-434/gh-actions-oidc-step-3-add-prevent-action-to-yaml
I believe 138/434 and 142/436 are dupes.

Adds step 3 steps to TA onboarding:

Using GHA->Using Sentry Prevent Token flow

  • Adding the getsentry/prevent-action script to the YAML file

Using GHA->Using OIDC flow

  • Editing github workflow with permissions and adding script to YAML

Using Sentry Prevent's CLI
-> Using pip
-> Using a binary (slightly different from using pip)

  • Installing Sentry Prevent CLI to CI env

@calvin-codecov calvin-codecov requested a review from a team as a code owner June 17, 2025 17:28
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 17, 2025
@@ -59,6 +64,9 @@ export default function TestsOnboardingPage() {
/>
<AddUploadToken step="2b" />
<AddPermissionsBlock step="2b" />
<AddScriptToYaml step="3" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Confirming these should all be step 3 right, they're just different variants of it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup

{SNIPPET}
</CodeSnippet>
<p>
{t(
Copy link
Contributor

@adrianviquez adrianviquez Jun 17, 2025

Choose a reason for hiding this comment

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

Two things

a) I think there's a bit of space missing between the code snippet and the next paragraph. This applies to all the "step 3s" that were added (In the "edit your github action workflow" one, the space missing is between the header and the following snippet) as well as step 2b

b) Does the "permissions" block seem weird to you here? It feels it's a bit lower than the rest of the text, is there a way to move it up like space(0.5)? This applies to all InlineCodeSnippets

Screenshot 2025-06-17 at 11 07 10 AM

Copy link
Contributor

@adrianviquez adrianviquez left a comment

Choose a reason for hiding this comment

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

Overall lgtm, thanks for this 👌. I noticed some sentences end in period and some dont so maybe look out for those - granted our designs are also inconsistent in that way, but I think we should pick one or the other and do it the same for all (likely ending in a period).

@calvin-codecov
Copy link
Contributor Author

I'm removing AddPermissionsBlock as it's actually part of editGHAWorkflow now. That step used to be 2 steps in one container but now has been modified in the Figma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants