Skip to content

Commit b23f0de

Browse files
committed
feat: use TF API to detect TF scope from API key
`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 #315
1 parent 6702240 commit b23f0de

File tree

14 files changed

+53
-29
lines changed

14 files changed

+53
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ See [Testing Farm onboarding guide](https://docs.testing-farm.io/Testing%20Farm/
2929
|------------|-------------|---------------|
3030
| `api_key` | Testing farm API key | empty, **required from user** |
3131
| `api_url` | Testing farm API server url | https://api.dev.testing-farm.io/v0.1 |
32-
| `tf_scope` | Define the scope of Testing Farm. Possible options are 'public' or 'private' | public |
32+
| `tf_scope` | **Deprecated**, this input is no longer used. `tf_scope` is now automatically detected based on the provided `api_key`. ~Define the scope of Testing Farm. Possible options are 'public' or 'private'~ | public |
3333

3434
### Tmt Metadata
3535

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ inputs:
1616
tf_scope:
1717
description: 'Defines the scope of Testing Farm. Possible options are public and private'
1818
required: false
19+
deprecationMessage: 'This input is no longer used. tf_scope is now automatically detected based on the provided api_key. Will be removed in the future.'
1920
default: 'public'
2021

2122
# Tmt Metadata

dist/action.js

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 25 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/schema/input.d.ts

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/schema/input.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/schema/input.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@octokit/types": "16.0.0",
3737
"date-fns": "4.1.0",
3838
"issue-metadata": "0.2.4",
39-
"testing-farm": "1.11.0",
39+
"testing-farm": "1.12.0",
4040
"zod": "4.1.12"
4141
},
4242
"devDependencies": {

0 commit comments

Comments
 (0)