Skip to content

Commit

Permalink
testing env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
M3GH4NN committed Mar 18, 2024
1 parent aa3dac9 commit cce7b67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
contents: read
outputs:
env_vars: ${{ steps.credentials.outputs.env_vars }}
secret_env_vars: ${{ steps.credentials.outputs.secret_env_vars}}
steps:
- name: Output encoded credentials
id: credentials
Expand All @@ -25,9 +26,10 @@ jobs:
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
env_vars: ${{ secrets.AZURE_CLIENT_ID }},${{ secrets.AZURE_CLIENT_SECRET }},${{ secrets.AZURE_TENANT_ID }}
secret_env_vars: ${{ secrets.AZURE_CLIENT_ID }},${{ secrets.AZURE_CLIENT_SECRET }},${{ secrets.AZURE_TENANT_ID }}
run: |
echo "env_vars=$(echo $env_vars | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT
echo "secret_env_vars=$(echo $secret_env_vars | base64 -w0 | base64 -w0)" >> $GITHUB_OUTPUT
call_central_workflow:
name: CI
# uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
Expand All @@ -36,6 +38,7 @@ jobs:
with:
setup-vault: true
env_vars: ${{ needs.credentials.outputs.env_vars }}
secrets: inherit
permissions:
contents: write
pull-requests: read
Expand Down

0 comments on commit cce7b67

Please sign in to comment.