Compare commits

..

10 Commits

Author SHA1 Message Date
Volodymyr Zotov
551f03ee9c Bump peter-evans/slash-command-dispatch to v4 2025-09-03 16:06:08 -05:00
Eduard Filip
2c12b97549 Merge pull request #117 from geofox/geofox-patch-typo
DOCS - Fix typo in the example with step’s output
2025-08-21 15:11:35 +01:00
Geoffrey Richard
211132e91f Typo in the example with step’s output
The missing « s » makes the action fail in the example.
2025-08-19 20:02:05 +02:00
Volodymyr Zotov
13f58eec61 Merge pull request #110 from 1Password/vzt/prepare-release-v3
Prepare release v3.0.0
2025-08-14 12:25:40 -05:00
Volodymyr Zotov
f9847b316a Merge branch 'main' into vzt/prepare-release-v3
# Conflicts:
#	README.md
2025-08-14 10:01:49 -05:00
Volodymyr Zotov
ee4b4919bf Make latest build 2025-08-13 16:50:05 -05:00
Volodymyr Zotov
13f110716c Merge branch 'main' into vzt/prepare-release-v3 2025-08-13 16:49:19 -05:00
Volodymyr Zotov
93b787fdef Merge branch 'main' into vzt/prepare-release-v3 2025-08-13 15:13:22 -05:00
Volodymyr Zotov
cb2930c65f Bump actions/checkout to v4 on readme 2025-08-13 13:25:33 -05:00
Volodymyr Zotov
65a7f5e592 Prepare release v3.0.0 2025-08-13 13:16:21 -05:00
9 changed files with 20 additions and 24 deletions

View File

@@ -15,7 +15,7 @@ on:
export-env:
required: true
type: boolean
cli-version:
version:
required: false
type: string
default: "latest"
@@ -90,7 +90,7 @@ jobs:
id: load_secrets
uses: ./ # 1password/load-secrets-action@<version>
with:
cli-version: ${{ inputs.cli-version }}
version: ${{ inputs.version }}
export-env: ${{ inputs.export-env }}
env:
SECRET: ${{ inputs.secret }}

View File

@@ -15,7 +15,7 @@ jobs:
if: ${{ github.event.issue.pull_request }}
steps:
- name: Slash Command Dispatch
uses: peter-evans/slash-command-dispatch@v3
uses: peter-evans/slash-command-dispatch@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
reaction-token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -22,12 +22,12 @@ jobs:
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
)
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
uses: 1password/load-secrets-action/.github/workflows/acceptance-test.yml@main
secrets: inherit
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
cli-version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
auth: [connect, service-account]
exclude:
- os: macos-latest
@@ -36,7 +36,7 @@ jobs:
auth: connect
with:
os: ${{ matrix.os }}
cli-version: ${{ matrix.cli-version }}
version: ${{ matrix.version }}
auth: ${{ matrix.auth }}
secret: op://acceptance-tests/test-secret/password
secret-in-section: op://acceptance-tests/test-secret/test-section/password
@@ -50,12 +50,12 @@ jobs:
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
)
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
uses: 1password/load-secrets-action/.github/workflows/acceptance-test.yml@main
secrets: inherit
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
cli-version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
auth: [connect, service-account]
exclude:
- os: macos-latest
@@ -64,7 +64,7 @@ jobs:
auth: connect
with:
os: ${{ matrix.os }}
cli-version: ${{ matrix.cli-version }}
version: ${{ matrix.version }}
auth: ${{ matrix.auth }}
secret: op://acceptance-tests/test-secret/password
secret-in-section: op://acceptance-tests/test-secret/test-section/password
@@ -78,12 +78,12 @@ jobs:
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
)
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
uses: 1password/load-secrets-action/.github/workflows/acceptance-test.yml@main
secrets: inherit
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
cli-version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
version: [latest, latest-beta, 2.30.0, 2.30.0-beta.03]
auth: [connect, service-account]
exclude:
- os: macos-latest
@@ -92,7 +92,7 @@ jobs:
auth: connect
with:
os: ${{ matrix.os }}
cli-version: ${{ matrix.cli-version }}
version: ${{ matrix.version }}
auth: ${{ matrix.auth }}
secret: op://v5pz6venw4roosmkzdq2nhpv6u/hrgkzhrlvscomepxlgafb2m3ca/password
secret-in-section: op://v5pz6venw4roosmkzdq2nhpv6u/hrgkzhrlvscomepxlgafb2m3ca/Section_tco6nsqycj6jcbyx63h5isxcny/doxu3mhkozcznnk5vjrkpdqayy

View File

@@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v4
- name: Load secret
id: load_secret
id: load_secrets
uses: 1password/load-secrets-action@v3
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}

View File

@@ -11,7 +11,7 @@ inputs:
export-env:
description: Export the secrets as environment variables
default: "false"
cli-version:
version:
description: Specify which 1Password CLI version to install. Defaults to "latest".
default: "latest"
runs:

6
dist/index.js vendored
View File

@@ -35166,7 +35166,7 @@ var op_cli_installer_dist = __nccwpck_require__(1621);
// EXTERNAL MODULE: ./node_modules/@actions/exec/lib/exec.js
var exec = __nccwpck_require__(5236);
;// CONCATENATED MODULE: ./package.json
const package_namespaceObject = {"rE":"2.0.0"};
const package_namespaceObject = {"rE":"3.0.0"};
;// CONCATENATED MODULE: ./src/constants.ts
const envConnectHost = "OP_CONNECT_HOST";
const envConnectToken = "OP_CONNECT_TOKEN";
@@ -35286,9 +35286,7 @@ const installCLI = async () => {
// 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.
await (0,dist.validateCli)().catch(async () => {
// defaults to `latest` if not provided
const cliVersion = core.getInput("cli-version");
await (0,op_cli_installer_dist/* installCliOnGithubActionRunner */.Cq)(cliVersion);
await (0,op_cli_installer_dist/* installCliOnGithubActionRunner */.Cq)();
});
};
void loadSecretsAction();

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "load-secrets-action",
"version": "2.0.0",
"version": "3.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "load-secrets-action",
"version": "2.0.0",
"version": "3.0.0",
"license": "MIT",
"dependencies": {
"@1password/op-js": "^0.1.11",

View File

@@ -1,6 +1,6 @@
{
"name": "load-secrets-action",
"version": "2.0.0",
"version": "3.0.0",
"description": "Load Secrets from 1Password",
"main": "dist/index.js",
"directories": {

View File

@@ -44,9 +44,7 @@ const installCLI = async (): Promise<void> => {
// 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.
await validateCli().catch(async () => {
// defaults to `latest` if not provided
const cliVersion = core.getInput("cli-version");
await installCliOnGithubActionRunner(cliVersion);
await installCliOnGithubActionRunner();
});
};