Skip to content

Only run smoketests in PRs targetting main repository#1736

Merged
grvillic merged 2 commits intomainfrom
users/grvillic/SelfHostedRunnerUpdates
Mar 25, 2026
Merged

Only run smoketests in PRs targetting main repository#1736
grvillic merged 2 commits intomainfrom
users/grvillic/SelfHostedRunnerUpdates

Conversation

@grvillic
Copy link
Collaborator

Context

We already have the setting in place to avoid executing workflows in any forked repository without approval from a contributor, but this setting hardens that check to ensure this agent pool is never executed outside of our primary repo. To reduce changes of manual error.

@grvillic grvillic requested a review from a team as a code owner March 25, 2026 01:11
@grvillic grvillic requested review from Copilot and zhenghao104 March 25, 2026 01:11
@grvillic grvillic enabled auto-merge (squash) March 25, 2026 01:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens the Smoke Tests GitHub Actions workflow so the self-hosted agent pool is only used when the workflow runs in the primary microsoft/component-detection repository, preventing execution in forks.

Changes:

  • Add a job-level if guard to skip the smoke-test job unless github.repository matches microsoft/component-detection.

@github-actions
Copy link

👋 Hi! It looks like you modified some files in the Detectors folder.
You may need to bump the detector versions if any of the following scenarios apply:

  • The detector detects more or fewer components than before
  • The detector generates different parent/child graph relationships than before
  • The detector generates different devDependencies values than before

If none of the above scenarios apply, feel free to ignore this comment 🙂

@grvillic grvillic merged commit db2ef16 into main Mar 25, 2026
25 checks passed
@grvillic grvillic deleted the users/grvillic/SelfHostedRunnerUpdates branch March 25, 2026 01:30
@codecov
Copy link

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.0%. Comparing base (62ce022) to head (ba3fc3c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff      @@
##   main   #1736   +/-   ##
============================
============================

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants