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

[TEST] ci: Something may be up with GUT #74

Closed

Conversation

nicholas-codecov
Copy link
Collaborator

Description

Code Example

Notable Changes

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Copy link

@codecov codecov bot left a comment

Choose a reason for hiding this comment

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

The code changes seem fine, the names of these secrets on GitHub must have been changed to reflect what is edited in these lines. However, hardcoding secret tokens in the code could lead to a potential security issue where the GitHub actions have access to all the secrets. Use environment variables instead which are safer.

@@ -338,13 +338,13 @@ jobs:
- name: Build ${{ matrix.example }} app for staging
working-directory: ./examples/${{ matrix.example }}
env:
NEXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
NEXT_UPLOAD_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Copy link

Choose a reason for hiding this comment

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

You should consider preferably assigning secret values to environment variables, not hardcoded as they tend to be more secure and flexible.

NEXT_API_URL: ${{ secrets.CODECOV_API_URL }}
ROLLUP_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
ROLLUP_UPLOAD_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Copy link

Choose a reason for hiding this comment

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

Hardcoding secret tokens in the code could lead to a potential security issue where your Continuous Integration (CI) has access to all secrets. Please consider using environment variables.

ROLLUP_API_URL: ${{ secrets.CODECOV_API_URL }}
VITE_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
VITE_UPLOAD_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Copy link

Choose a reason for hiding this comment

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

The secret tokens should be stored as environment variables. Using hardcoded tokens may create an unintended exposure.

VITE_API_URL: ${{ secrets.CODECOV_API_URL }}
WEBPACK_UPLOAD_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
WEBPACK_UPLOAD_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Copy link

Choose a reason for hiding this comment

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

Consider getting such secret tokens from the environment variables instead of hardcoding them, to increase security.

@codecov-staging
Copy link

codecov-staging bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Components Coverage Δ
Plugin core 95.81% <ø> (ø)
Rollup plugin 7.24% <ø> (ø)
Vite plugin 7.24% <ø> (ø)
Webpack plugin 32.63% <ø> (ø)

📢 Thoughts on this report? Let us know!

Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (aa4ffc3) 82.83% compared to head (3c4fc53) 82.83%.

Additional details and impacted files
Components Coverage Δ
Plugin core 95.81% <ø> (ø)
Rollup plugin 7.24% <ø> (ø)
Vite plugin 7.24% <ø> (ø)
Webpack plugin 32.63% <ø> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codecov-staging
Copy link

codecov-staging bot commented Feb 15, 2024

Bundle Report

Bundle size has no change ✅

@nicholas-codecov
Copy link
Collaborator Author

No longer needed.

@nicholas-codecov nicholas-codecov deleted the ci-something-may-be-up-with-repo-tokens branch February 15, 2024 22:34
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.

1 participant