Skip to content

Conversation

@thomasrockhu-codecov
Copy link
Contributor

@thomasrockhu-codecov thomasrockhu-codecov commented Nov 14, 2025

Description

Remove the restriction on FOSSA on forks, we should still run it if it's incoming into codecov. Note that a Codecov eng will still need to run by pushing up an empty commit git commit --allow-empty

Code Example

Notable Changes

Screenshots

Link to Sample Entry

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.


Note

Allows the fossa job in .github/workflows/ci.yml to run whenever github.repository_owner == 'codecov' by removing the fork check.

Written by Cursor Bugbot for commit cbced96. This will update automatically on new commits. Configure here.

@sentry
Copy link

sentry bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.61%. Comparing base (2a0be18) to head (cbced96).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3953   +/-   ##
=======================================
  Coverage   98.61%   98.61%           
=======================================
  Files         828      828           
  Lines       15126    15126           
  Branches     4340     4340           
=======================================
  Hits        14917    14917           
  Misses        201      201           
  Partials        8        8           
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.14% <ø> (ø)
Services 99.32% <ø> (ø)
Shared 99.06% <ø> (ø)
UI 99.01% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a0be18...cbced96. Read the comment docs.

@codecov-staging
Copy link

Bundle Report

Bundle size has no change ✅

@sentry
Copy link

sentry bot commented Nov 14, 2025

Bundle Report

Bundle size has no change ✅

runs-on: ubuntu-latest
needs: install
if: ${{ !github.event.pull_request.head.repo.fork && github.repository_owner == 'codecov' }}
if: ${{ github.repository_owner == 'codecov' }}
Copy link

Choose a reason for hiding this comment

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

Bug: FOSSA job fails on fork PRs due to unavailable secrets.FOSSA_API_KEY.
Severity: CRITICAL | Confidence: 0.95

🔍 Detailed Analysis

The FOSSA job will fail when triggered by pull requests originating from forked repositories. This occurs because GitHub Actions intentionally provides an empty string for secrets.FOSSA_API_KEY on pull_request events from forks. The change removed the if: ${{ !github.event.pull_request.head.repo.fork }} condition, allowing the job to run on forks without a valid API key, leading to failure.

💡 Suggested Fix

Implement a mechanism to handle unavailable secrets on fork PRs, such as using pull_request_target, GitHub Environments, FOSSA's push-only API token, or conditional logic to skip the API key step.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: .github/workflows/ci.yml#L378

Potential issue: The FOSSA job will fail when triggered by pull requests originating
from forked repositories. This occurs because GitHub Actions intentionally provides an
empty string for `secrets.FOSSA_API_KEY` on `pull_request` events from forks. The change
removed the `if: ${{ !github.event.pull_request.head.repo.fork }}` condition, allowing
the job to run on forks without a valid API key, leading to failure.

Did we get this right? 👍 / 👎 to inform future reviews.

Reference_id: 2688885

@codecov-notifications
Copy link

codecov-notifications bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3953   +/-   ##
=======================================
  Coverage   98.61%   98.61%           
=======================================
  Files         828      828           
  Lines       15126    15126           
  Branches     4348     4340    -8     
=======================================
  Hits        14917    14917           
  Misses        201      201           
  Partials        8        8           
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.14% <ø> (ø)
Services 99.32% <ø> (ø)
Shared 99.06% <ø> (ø)
UI 99.01% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a0be18...cbced96. Read the comment docs.

@codecov-public-qa
Copy link

codecov-public-qa bot commented Nov 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.61%. Comparing base (2a0be18) to head (cbced96).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

@@           Coverage Diff           @@
##             main    #3953   +/-   ##
=======================================
  Coverage   98.61%   98.61%           
=======================================
  Files         828      828           
  Lines       15126    15126           
  Branches     4340     4348    +8     
=======================================
  Hits        14917    14917           
  Misses        201      201           
  Partials        8        8           
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 99.71% <ø> (ø)
Pages 98.14% <ø> (ø)
Services 99.32% <ø> (ø)
Shared 99.06% <ø> (ø)
UI 99.01% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a0be18...cbced96. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codecov-releaser
Copy link
Contributor

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
cbced96 Fri, 14 Nov 2025 16:11:05 GMT Cloud Enterprise

@thomasrockhu-codecov thomasrockhu-codecov added this pull request to the merge queue Nov 14, 2025
Merged via the queue into main with commit 39a0cbf Nov 14, 2025
56 checks passed
@thomasrockhu-codecov thomasrockhu-codecov deleted the th/remove-fossa-restriction-on-non-forks branch November 14, 2025 16:41
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.

4 participants