Base64 decode CCP Certs #666
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cybr-cli CI | |
on: | |
push: | |
branches-ignore: | |
- main | |
workflow_dispatch: | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '>=1.18' | |
cache: false | |
- name: Lint All | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
args: --timeout 5m --issues-exit-code=0 | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
needs: lint | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '>=1.18' | |
cache: false | |
- name: Import Secrets using CyberArk Conjur Secret Fetcher | |
uses: infamousjoeg/[email protected] | |
with: | |
url: https://pineapple.secretsmgr.cyberark.cloud/api | |
account: conjur | |
authn_id: inf-github | |
secrets: | | |
data/vault/PIN-APP-CYBRCLI/Application-CyberArk-httpspineapple.privilegecloud.cyberark.cloud-jgarcia/address|PAS_HOSTNAME;data/vault/PIN-APP-CYBRCLI/Application-CyberArk-httpspineapple.privilegecloud.cyberark.cloud-jgarcia/username|PAS_USERNAME;data/vault/PIN-APP-CYBRCLI/Application-CyberArk-httpspineapple.privilegecloud.cyberark.cloud-jgarcia/password|PAS_PASSWORD;data/vault/PIN-APP-CYBRCLI/Website-PIN-CLIENT-CERT-httpscloud-connect.infamousdevops.com-ccp_client_cert/password|CCP_CLIENT_CERT;data/vault/PIN-APP-CYBRCLI/Website-PIN-CLIENT-CERT-httpscloud-connect.infamousdevops.com-ccp_client_key/password|CCP_CLIENT_PRIVATE_KEY;" | |
- name: Upload Artifacts to Workflow | |
if: always() | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Secrets | |
path: secrets.txt | |
- name: Test All | |
run: | | |
export CCP_CLIENT_CERT=$(echo $CCP_CLIENT_CERT | base64 -d) | |
export CCP_CLIENT_PRIVATE_KEY=$(echo $CCP_CLIENT_PRIVATE_KEY | base64 -d) | |
go test -v ./... |