Skip to content

Commit

Permalink
Merge pull request #96 from sophos-factory/ERDE-2193/devops/update-re…
Browse files Browse the repository at this point in the history
…lease

[ERDE-2193] update cli release
  • Loading branch information
Dan Shepherd committed Dec 8, 2022
2 parents bac3119 + d607213 commit 3a5ad99
Show file tree
Hide file tree
Showing 20 changed files with 10,619 additions and 15,452 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 16.x
- name: Get npm cache directory
id: npm-cache-dir
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Publish Release to GitHub
on:
workflow_call:
workflow_dispatch:

jobs:
# Create GitHub Release and upload binary assets
create_release:
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 12.x
node-version: 16.x

- name: Get npm cache directory
id: npm-cache-dir
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
version: [12.x, 14.x, 15.x]
version: [14.x, 16.x, 18.x, 19.x]
steps:
- uses: actions/checkout@v2
- name: Setup node ${{ matrix.version }}
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Ensure you've installed the CLI globally. See [Installation](https://github.com/

## Clone

Clone the repository:
Clone the repository:

```sh
git clone https://github.com/sophos-factory/cli.git
Expand Down
2 changes: 1 addition & 1 deletion babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
'@babel/preset-env',
{
targets: {
node: '12'
node: '16'
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions e2e/__tests__/__snapshots__/authentication.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ exports[`authentication rejects if token is not provided 1`] = `
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
--help Show help [boolean]
--organization-id ID of the organization containing the projects [string]
--sort Sort order [string] [choices: \\"modified_asc\\", \\"modified_desc\\", \\"name_asc\\", \\"name_desc\\"]
--sort Sort order [string] [choices: "modified_asc", "modified_desc", "name_asc", "name_desc"]
--limit [number]
--offset [number]
Expand Down
48 changes: 24 additions & 24 deletions e2e/__tests__/__snapshots__/create.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ Create a new credential
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
--help Show help [boolean]
--project-id ID of the project under which the credential will be created [string] [required]
--name Name of the credential [string] [required]
--data.username Username for \\"username_password\\" credential type [string]
--data.password Password for \\"username_password\\" credential type [string]
--data.token Token for \\"bearer_token\\" credential type [string]
--data.access-key Access key for \\"aws_access_key\\" credential type [string]
--data.secret-key Secret key for \\"aws_access_key\\" credential type [string]
--data.subscription-id Subscription ID for \\"azure_service_principal\\" credential type [string]
--data.domain Domain for \\"azure_service_principal\\" credential type [string]
--data.client-id Client ID for \\"azure_service_principal\\" credential type [string]
--data.client-key Client key for \\"azure_service_principal\\" credential type [string]
--data.tenant-id Domain key for \\"azure_service_principal\\" credential type [string]
--data.json JSON key for \\"google_service_account\\" credential type [string]
--data.role-id Role ID for \\"vault_app_role\\" credential type
--data.secret-id Secret ID for \\"vault_app_role\\" credential type
--data.private-key SSH key for \\"ssh_key\\" credential type [string]
--data.text Text for \\"generic\\" credential type [string]
--data.username Username for "username_password" credential type [string]
--data.password Password for "username_password" credential type [string]
--data.token Token for "bearer_token" credential type [string]
--data.access-key Access key for "aws_access_key" credential type [string]
--data.secret-key Secret key for "aws_access_key" credential type [string]
--data.subscription-id Subscription ID for "azure_service_principal" credential type [string]
--data.domain Domain for "azure_service_principal" credential type [string]
--data.client-id Client ID for "azure_service_principal" credential type [string]
--data.client-key Client key for "azure_service_principal" credential type [string]
--data.tenant-id Domain key for "azure_service_principal" credential type [string]
--data.json JSON key for "google_service_account" credential type [string]
--data.role-id Role ID for "vault_app_role" credential type
--data.secret-id Secret ID for "vault_app_role" credential type
--data.private-key SSH key for "ssh_key" credential type [string]
--data.text Text for "generic" credential type [string]
--id Credential reference id [required]
--type Credential type [required] [choices: \\"api_token\\", \\"aws_access_key\\", \\"azure_service_principal\\", \\"bearer_token\\", \\"generic\\", \\"ssh_key\\", \\"username_password\\", \\"vault_app_role\\", \\"google_service_account\\"]
--type Credential type [required] [choices: "api_token", "aws_access_key", "azure_service_principal", "bearer_token", "generic", "ssh_key", "username_password", "vault_app_role", "google_service_account"]
Missing required arguments: project-id, name, data, id, type
"
Expand All @@ -45,7 +45,7 @@ Create a new job
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -54,13 +54,13 @@ Options:
--pipeline-id ID of the pipeline from which job will be created [string] [required]
--revision-id ID of the pipeline revision [string] [required]
--name Name of the job [string] [required]
--type Trigger type of the job [required] [choices: \\"manual\\", \\"scheduled\\"]
--type Trigger type of the job [required] [choices: "manual", "scheduled"]
--var Pipeline variable in \`key:value\` format, where value is JSON data or valid JSON object. [string]
--schedule.start-day [string]
--schedule.start-time [string]
--schedule.offset [string]
--schedule.interval [number]
--schedule.interval-type [choices: \\"minute\\", \\"hour\\", \\"day\\", \\"week\\", \\"month\\"]
--schedule.interval-type [choices: "minute", "hour", "day", "week", "month"]
--suppress-events Suppress run events during job run [boolean] [default: false]
--suppress-outputs Suppress outputs during job run [boolean] [default: false]
--suppress-variables Suppress variables during job run [boolean] [default: false]
Expand All @@ -76,7 +76,7 @@ exports[`refactrctl create pipeline throws on missing arguments 1`] = `
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -101,7 +101,7 @@ Positionals:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -121,7 +121,7 @@ Create a new project
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -148,7 +148,7 @@ Commands:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand Down
18 changes: 9 additions & 9 deletions e2e/__tests__/__snapshots__/delete.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Positionals:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -33,7 +33,7 @@ Positionals:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -55,7 +55,7 @@ Positionals:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -78,7 +78,7 @@ Positionals:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -101,7 +101,7 @@ Positionals:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -123,7 +123,7 @@ Positionals:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -144,7 +144,7 @@ Positionals:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -166,7 +166,7 @@ Positionals:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand All @@ -192,7 +192,7 @@ Commands:
Options:
--version Show version number [boolean]
-v, --verbose Print detailed output [boolean]
--format Output format [choices: \\"wide\\", \\"json\\", \\"yaml\\"] [default: \\"wide\\"]
--format Output format [choices: "wide", "json", "yaml"] [default: "wide"]
--filter Filter output using JsonPath [string]
--address Address of the Sophos Factory API server [string] [default: FACTORY_ADDRESS environment variable if set, otherwise https://api.refactr.it/v1]
--auth-token Authentication token [string] [default: FACTORY_AUTH_TOKEN environment variable]
Expand Down

0 comments on commit 3a5ad99

Please sign in to comment.