Skip to content

Conversation

@jamacku
Copy link
Member

@jamacku jamacku commented Nov 14, 2025

tf_scope input is now deprecated and will be removed in the future. The value of tf_scope is now ignored, and the whoami API endpoint is used to detect the scope.

Fixes #315

`tf_scope` input is now deprecated and will be removed in the future.
The value of `tf_scope` is now ignored and whoami API endpoint is used to detect the scope.

Fixes sclorg#315
@jamacku jamacku requested review from Copilot and phracek November 14, 2025 13:06
@jamacku jamacku self-assigned this Nov 14, 2025
@jamacku jamacku added the type: feature New feature or request label Nov 14, 2025
@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #329      +/-   ##
==========================================
- Coverage   91.58%   91.56%   -0.02%     
==========================================
  Files          14       14              
  Lines         867      865       -2     
  Branches      162      161       -1     
==========================================
- Hits          794      792       -2     
  Misses         73       73              

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jamacku
Copy link
Member Author

jamacku commented Nov 14, 2025

[test]

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 automates the detection of Testing Farm scope by using the Testing Farm API's whoami endpoint instead of requiring users to manually specify the tf_scope input. The tf_scope input is now deprecated and will be removed in a future version.

  • Upgraded testing-farm package from v1.11.0 to v1.12.0 to gain access to the new whoami API endpoint
  • Removed the tfScopeSchema validation and replaced manual scope parsing with automatic detection via api.whoami().token.ranch
  • Updated tests to mock the whoami API endpoint responses

Reviewed Changes

Copilot reviewed 6 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Upgraded testing-farm dependency to 1.12.0
yarn.lock Updated lock file with new testing-farm version and checksum
src/schema/input.ts Removed deprecated tfScopeSchema export
src/action.ts Replaced manual tf_scope parsing with api.whoami() call
tests/action.test.ts Added whoami mock for both public and private ranch scenarios
action.yml Added deprecation message for tf_scope input
README.md Updated documentation to indicate tf_scope is deprecated
dist/* Built distribution files reflecting source changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link

github-actions bot commented Nov 14, 2025

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
Secrets testFedora-latestx86_64✅ passed14.11.2025 13:08:401min 57stest pipeline
Smoke testFedora-latestx86_64✅ passed14.11.2025 13:08:391min 60stest pipeline
Smoke test - pull_request_targetFedora-latestx86_64✅ passed14.11.2025 13:07:102min 59stest pipeline
Variables testFedora-latestx86_64✅ passed14.11.2025 13:08:412min 3stest pipeline
Timeout testFedora-latestx86_64✅ passed14.11.2025 13:08:397min 1stest pipeline

@jamacku jamacku merged commit b23f0de into sclorg:main Nov 18, 2025
19 checks passed
@jamacku jamacku deleted the use-whoami branch November 18, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tf_scope should be auto-detected from the token and deprecated

1 participant