Compare commits
4 Commits
v3.0.0
...
vzt/rename
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9fd72bcae7 | ||
|
|
4c8b833188 | ||
|
|
b10aa9ed81 | ||
|
|
b9110a4b5b |
4
.github/workflows/acceptance-test.yml
vendored
4
.github/workflows/acceptance-test.yml
vendored
@@ -15,7 +15,7 @@ on:
|
|||||||
export-env:
|
export-env:
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
version:
|
cli-version:
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: "latest"
|
default: "latest"
|
||||||
@@ -90,7 +90,7 @@ jobs:
|
|||||||
id: load_secrets
|
id: load_secrets
|
||||||
uses: ./ # 1password/load-secrets-action@<version>
|
uses: ./ # 1password/load-secrets-action@<version>
|
||||||
with:
|
with:
|
||||||
version: ${{ inputs.version }}
|
cli-version: ${{ inputs.cli-version }}
|
||||||
export-env: ${{ inputs.export-env }}
|
export-env: ${{ inputs.export-env }}
|
||||||
env:
|
env:
|
||||||
SECRET: ${{ inputs.secret }}
|
SECRET: ${{ inputs.secret }}
|
||||||
|
|||||||
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@@ -22,12 +22,12 @@ jobs:
|
|||||||
github.event_name == 'pull_request' &&
|
github.event_name == 'pull_request' &&
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
github.event.pull_request.head.repo.full_name == github.repository
|
||||||
)
|
)
|
||||||
uses: 1password/load-secrets-action/.github/workflows/acceptance-test.yml@main
|
uses: 1password/load-secrets-action/.github/workflows/acceptance-test.yml@vzt/rename-version-input # TODO: temporary point to this branch so tests can run with update input
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
|
cli-version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
|
||||||
auth: [connect, service-account]
|
auth: [connect, service-account]
|
||||||
exclude:
|
exclude:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -36,7 +36,7 @@ jobs:
|
|||||||
auth: connect
|
auth: connect
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
version: ${{ matrix.version }}
|
cli-version: ${{ matrix.cli-version }}
|
||||||
auth: ${{ matrix.auth }}
|
auth: ${{ matrix.auth }}
|
||||||
secret: op://acceptance-tests/test-secret/password
|
secret: op://acceptance-tests/test-secret/password
|
||||||
secret-in-section: op://acceptance-tests/test-secret/test-section/password
|
secret-in-section: op://acceptance-tests/test-secret/test-section/password
|
||||||
@@ -50,12 +50,12 @@ jobs:
|
|||||||
github.event_name == 'pull_request' &&
|
github.event_name == 'pull_request' &&
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
github.event.pull_request.head.repo.full_name == github.repository
|
||||||
)
|
)
|
||||||
uses: 1password/load-secrets-action/.github/workflows/acceptance-test.yml@main
|
uses: 1password/load-secrets-action/.github/workflows/acceptance-test.yml@vzt/rename-version-input # TODO: temporary point to this branch so tests can run with update input
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
|
cli-version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
|
||||||
auth: [connect, service-account]
|
auth: [connect, service-account]
|
||||||
exclude:
|
exclude:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -64,7 +64,7 @@ jobs:
|
|||||||
auth: connect
|
auth: connect
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
version: ${{ matrix.version }}
|
cli-version: ${{ matrix.cli-version }}
|
||||||
auth: ${{ matrix.auth }}
|
auth: ${{ matrix.auth }}
|
||||||
secret: op://acceptance-tests/test-secret/password
|
secret: op://acceptance-tests/test-secret/password
|
||||||
secret-in-section: op://acceptance-tests/test-secret/test-section/password
|
secret-in-section: op://acceptance-tests/test-secret/test-section/password
|
||||||
@@ -78,12 +78,12 @@ jobs:
|
|||||||
github.event_name == 'pull_request' &&
|
github.event_name == 'pull_request' &&
|
||||||
github.event.pull_request.head.repo.full_name == github.repository
|
github.event.pull_request.head.repo.full_name == github.repository
|
||||||
)
|
)
|
||||||
uses: 1password/load-secrets-action/.github/workflows/acceptance-test.yml@main
|
uses: 1password/load-secrets-action/.github/workflows/acceptance-test.yml@vzt/rename-version-input # TODO: temporary point to this branch so tests can run with update input
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
|
cli-version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
|
||||||
auth: [connect, service-account]
|
auth: [connect, service-account]
|
||||||
exclude:
|
exclude:
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
@@ -92,7 +92,7 @@ jobs:
|
|||||||
auth: connect
|
auth: connect
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
version: ${{ matrix.version }}
|
cli-version: ${{ matrix.cli-version }}
|
||||||
auth: ${{ matrix.auth }}
|
auth: ${{ matrix.auth }}
|
||||||
secret: op://v5pz6venw4roosmkzdq2nhpv6u/hrgkzhrlvscomepxlgafb2m3ca/password
|
secret: op://v5pz6venw4roosmkzdq2nhpv6u/hrgkzhrlvscomepxlgafb2m3ca/password
|
||||||
secret-in-section: op://v5pz6venw4roosmkzdq2nhpv6u/hrgkzhrlvscomepxlgafb2m3ca/Section_tco6nsqycj6jcbyx63h5isxcny/doxu3mhkozcznnk5vjrkpdqayy
|
secret-in-section: op://v5pz6venw4roosmkzdq2nhpv6u/hrgkzhrlvscomepxlgafb2m3ca/Section_tco6nsqycj6jcbyx63h5isxcny/doxu3mhkozcznnk5vjrkpdqayy
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ inputs:
|
|||||||
export-env:
|
export-env:
|
||||||
description: Export the secrets as environment variables
|
description: Export the secrets as environment variables
|
||||||
default: "false"
|
default: "false"
|
||||||
version:
|
cli-version:
|
||||||
description: Specify which 1Password CLI version to install. Defaults to "latest".
|
description: Specify which 1Password CLI version to install. Defaults to "latest".
|
||||||
default: "latest"
|
default: "latest"
|
||||||
runs:
|
runs:
|
||||||
|
|||||||
6
dist/index.js
vendored
6
dist/index.js
vendored
@@ -35166,7 +35166,7 @@ var op_cli_installer_dist = __nccwpck_require__(1621);
|
|||||||
// EXTERNAL MODULE: ./node_modules/@actions/exec/lib/exec.js
|
// EXTERNAL MODULE: ./node_modules/@actions/exec/lib/exec.js
|
||||||
var exec = __nccwpck_require__(5236);
|
var exec = __nccwpck_require__(5236);
|
||||||
;// CONCATENATED MODULE: ./package.json
|
;// CONCATENATED MODULE: ./package.json
|
||||||
const package_namespaceObject = {"rE":"3.0.0"};
|
const package_namespaceObject = {"rE":"2.0.0"};
|
||||||
;// CONCATENATED MODULE: ./src/constants.ts
|
;// CONCATENATED MODULE: ./src/constants.ts
|
||||||
const envConnectHost = "OP_CONNECT_HOST";
|
const envConnectHost = "OP_CONNECT_HOST";
|
||||||
const envConnectToken = "OP_CONNECT_TOKEN";
|
const envConnectToken = "OP_CONNECT_TOKEN";
|
||||||
@@ -35286,7 +35286,9 @@ const installCLI = async () => {
|
|||||||
// If there's no CLI installed, then validateCli will throw an error, which we will use
|
// If there's no CLI installed, then validateCli will throw an error, which we will use
|
||||||
// as an indicator that we need to execute the installation script.
|
// as an indicator that we need to execute the installation script.
|
||||||
await (0,dist.validateCli)().catch(async () => {
|
await (0,dist.validateCli)().catch(async () => {
|
||||||
await (0,op_cli_installer_dist/* installCliOnGithubActionRunner */.Cq)();
|
// defaults to `latest` if not provided
|
||||||
|
const cliVersion = core.getInput("cli-version");
|
||||||
|
await (0,op_cli_installer_dist/* installCliOnGithubActionRunner */.Cq)(cliVersion);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
void loadSecretsAction();
|
void loadSecretsAction();
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "load-secrets-action",
|
"name": "load-secrets-action",
|
||||||
"version": "3.0.0",
|
"version": "2.0.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "load-secrets-action",
|
"name": "load-secrets-action",
|
||||||
"version": "3.0.0",
|
"version": "2.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@1password/op-js": "^0.1.11",
|
"@1password/op-js": "^0.1.11",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "load-secrets-action",
|
"name": "load-secrets-action",
|
||||||
"version": "3.0.0",
|
"version": "2.0.0",
|
||||||
"description": "Load Secrets from 1Password",
|
"description": "Load Secrets from 1Password",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|||||||
@@ -44,7 +44,9 @@ const installCLI = async (): Promise<void> => {
|
|||||||
// If there's no CLI installed, then validateCli will throw an error, which we will use
|
// If there's no CLI installed, then validateCli will throw an error, which we will use
|
||||||
// as an indicator that we need to execute the installation script.
|
// as an indicator that we need to execute the installation script.
|
||||||
await validateCli().catch(async () => {
|
await validateCli().catch(async () => {
|
||||||
await installCliOnGithubActionRunner();
|
// defaults to `latest` if not provided
|
||||||
|
const cliVersion = core.getInput("cli-version");
|
||||||
|
await installCliOnGithubActionRunner(cliVersion);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user