Skip to content

Commit 9a41200

Browse files
authored
Merge pull request Expensify#77820 from Expensify/update-1password-cli-action
[No QA] Migrate to shared 1Password setup action
2 parents 2e04752 + 5153057 commit 9a41200

4 files changed

Lines changed: 24 additions & 18 deletions

File tree

.github/workflows/androidBump.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ jobs:
2121
with:
2222
bundler-cache: true
2323

24-
- name: Install 1Password CLI
25-
# v1
26-
uses: 1password/install-cli-action@143a85f84a90555d121cde2ff5872e393a47ab9f
24+
- name: Setup 1Password CLI and certificates
25+
uses: Expensify/GitHub-Actions/setup-certificate-1p@main
26+
with:
27+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
2728

2829
- name: Load files from 1Password
2930
working-directory: android/app

.github/workflows/buildAndroid.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,10 @@ jobs:
9696
with:
9797
bundler-cache: true
9898

99-
- name: Install 1Password CLI
100-
# v1
101-
uses: 1password/install-cli-action@143a85f84a90555d121cde2ff5872e393a47ab9f
99+
- name: Setup 1Password CLI and certificates
100+
uses: Expensify/GitHub-Actions/setup-certificate-1p@main
101+
with:
102+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
102103

103104
- name: Load files from 1Password
104105
working-directory: android/app

.github/workflows/deploy.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ jobs:
129129
- name: Install New Expensify Gems
130130
run: bundle install
131131

132-
- name: Install 1Password CLI
133-
# v1
134-
uses: 1password/install-cli-action@143a85f84a90555d121cde2ff5872e393a47ab9f
132+
- name: Setup 1Password CLI and certificates
133+
uses: Expensify/GitHub-Actions/setup-certificate-1p@main
134+
with:
135+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
135136

136137
- name: Load files from 1Password
137138
env:
@@ -408,9 +409,10 @@ jobs:
408409
max_attempts: 5
409410
command: npm run pod-install
410411

411-
- name: Install 1Password CLI
412-
# v1
413-
uses: 1password/install-cli-action@143a85f84a90555d121cde2ff5872e393a47ab9f
412+
- name: Setup 1Password CLI and certificates
413+
uses: Expensify/GitHub-Actions/setup-certificate-1p@main
414+
with:
415+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
414416

415417
- name: Load files from 1Password
416418
env:

.github/workflows/testBuild.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,10 @@ jobs:
327327
with:
328328
bundler-cache: true
329329

330-
- name: Install 1Password CLI
331-
# v1
332-
uses: 1password/install-cli-action@143a85f84a90555d121cde2ff5872e393a47ab9f
330+
- name: Setup 1Password CLI and certificates
331+
uses: Expensify/GitHub-Actions/setup-certificate-1p@main
332+
with:
333+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
333334

334335
- name: Load files from 1Password
335336
env:
@@ -456,9 +457,10 @@ jobs:
456457
max_attempts: 5
457458
command: npm run pod-install
458459

459-
- name: Install 1Password CLI
460-
# v1
461-
uses: 1password/install-cli-action@143a85f84a90555d121cde2ff5872e393a47ab9f
460+
- name: Setup 1Password CLI and certificates
461+
uses: Expensify/GitHub-Actions/setup-certificate-1p@main
462+
with:
463+
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
462464

463465
- name: Load files from 1Password
464466
env:

0 commit comments

Comments
 (0)