Skip to content

Commit

Permalink
Merge pull request #44 from sophos/ERDE-2746/devops/update-default-ap…
Browse files Browse the repository at this point in the history
…i-url

[ERDE-2746] update default api_urls to use new us-west-2 endpoint
  • Loading branch information
marcfieser authored Oct 11, 2023
2 parents 81f004a + df40757 commit aad790e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
| `job_id` | ID of the Job to run | yes | - |
| `api_token` | Sophos Factory API token | yes | - |
| `variables` | Input variables for the Job. The variables must be in a form of stringified JSON object, e.g. `'{ "my_var": "value" }'` | no | - |
| `api_url` | Sophos Factory API base URL. Most users will not need to set this value. | no | https://api.factory.sophos.com/v1 |
| `api_url` | Sophos Factory API base URL. Most users will not need to set this value. | no | https://api.us-west-2.factory.sophos.com/v1 |

## Outputs

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "run-pipeline",
"version": "2.0.1",
"version": "2.1.0",
"scripts": {
"build": "ncc build src/index.ts --minify --out dist/",
"lint:fix": "eslint --fix src src/__tests__",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { checkRunStatus, getRunOutputs, scheduleJob } from './actions';
import { Client } from './api';
import { isPOJO } from './isPOJO';

const DEFAULT_API_URL = 'https://api.factory.sophos.com/v1';
const DEFAULT_API_URL = 'https://api.us-west-2.factory.sophos.com/v1';

(async function main() {
const authToken = core.getInput('api_token');
Expand Down

0 comments on commit aad790e

Please sign in to comment.