Merge pull request #6 from Conjur-Enterprise/rm-version #24
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: conjur-action Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
authn-jwt: | |
runs-on: self-hosted | |
permissions: | |
id-token: 'write' | |
contents: 'read' | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use CyberArk Conjur Secret Fetcher Action w/ GitHub JWT | |
uses: ./ | |
with: | |
url: ${{ secrets.CONJUR_URL }} | |
account: cyberarkdemo | |
authn_id: ${{ secrets.CONJUR_SERVICE_ID }} | |
secrets: SyncVault/LOB_CI/D-Win-SvcAccts/Operating System-WinDomain-joegarcia.dev-Svc_SSIS/username|sql_username;SyncVault/LOB_CI/D-Win-SvcAccts/Operating System-WinDomain-joegarcia.dev-Svc_SSIS/password|sql_password | |
- name: Check SQL_USERNAME Outside Docker Container for Secret Masking | |
run: printenv SQL_USERNAME | sed 's/./& /g' | |
- name: Check SQL_PASSWORD Outside Docker Container for Secret Masking | |
run: printenv SQL_PASSWORD | sed 's/./& /g' | |
- name: Clean Workspace | |
uses: AutoModality/action-clean@v1.1.0 | |
github-secrets: | |
runs-on: self-hosted | |
needs: authn-jwt | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use CyberArk Conjur Secret Fetcher Action w/ GitHub Secrets | |
uses: ./ | |
with: | |
url: ${{ secrets.CONJUR_URL }} | |
account: cyberarkdemo | |
host_id: ${{ secrets.CONJUR_USERNAME }} | |
api_key: ${{ secrets.CONJUR_API_KEY }} | |
secrets: SyncVault/LOB_CI/D-Win-SvcAccts/Operating System-WinDomain-joegarcia.dev-Svc_SSIS/username|sql_username;SyncVault/LOB_CI/D-Win-SvcAccts/Operating System-WinDomain-joegarcia.dev-Svc_SSIS/password|sql_password | |
- name: Check SQL_USERNAME Outside Docker Container for Secret Masking | |
run: printenv SQL_USERNAME | sed 's/./& /g' | |
- name: Check SQL_PASSWORD Outside Docker Container for Secret Masking | |
run: printenv SQL_PASSWORD | sed 's/./& /g' | |
- name: Clean Workspace | |
uses: AutoModality/action-clean@v1.1.0 | |