Skip to content

Commit 5ba4b83

Browse files
committed
Make SSL certificate optional
1 parent 2c93278 commit 5ba4b83

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

setup-certificate-1p/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ inputs:
55
OP_SERVICE_ACCOUNT_TOKEN:
66
description: 1Password service account token
77
required: true
8+
NEEDS_SSL_CERTIFICATES:
9+
description: Whether the action needs to set up SSL certificates
10+
required: false
11+
default: "true"
812

913
runs:
1014
using: composite
@@ -15,6 +19,7 @@ runs:
1519
OP_SERVICE_ACCOUNT_TOKEN: ${{ inputs.OP_SERVICE_ACCOUNT_TOKEN }}
1620

1721
- name: Update SSL Certificates from 1Password
22+
if: ${{ inputs.NEEDS_SSL_CERTIFICATES == 'true' }}
1823
run: |
1924
op document get --output expensify.ca.crt expensify.ca.crt && sudo cp expensify.ca.crt /usr/local/share/ca-certificates/expensify.ca.crt
2025
sudo update-ca-certificates

0 commit comments

Comments
 (0)