Skip to content

testing env vars

testing env vars #70

Workflow file for this run

name: Pull Request or Push
on:
push:
branches:
- 'main' # Run on pushes to main
- 'test_secrets'
tags-ignore:
- '*' # Ignore pushes to tags
pull_request:
workflow_call:
secrets:
env_vars:
required: false
jobs:
credentials:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
outputs:
env_vars: ${{ steps.credentials.outputs.env_vars }}
steps:
- name: Output encoded credentials
id: credentials
env:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
run: |
echo "AZURE_CLIENT_ID=$(echo $AZURE_CLIENT_ID | base64 -w0)" >> $GITHUB_ENV
echo "AZURE_CLIENT_SECRET=$(echo $AZURE_CLIENT_SECRET | base64 -w0)" >> $GITHUB_ENV
echo "AZURE_TENANT_ID=$(echo $AZURE_TENANT_ID | base64 -w0)" >> $GITHUB_ENV
call_central_workflow:
name: CI
needs: credentials
uses: M3GH4NN/central-artifacts/.github/workflows/ci.yml@credentials

Check failure on line 40 in .github/workflows/pr.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pr.yml

Invalid workflow file

error parsing called workflow ".github/workflows/pr.yml" -> "M3GH4NN/central-artifacts/.github/workflows/ci.yml@credentials" (source branch with sha:95d48e2c57dd38f0d4099d1b70cc46f2d51a4801) : invalid value for secrets. Expected "inherit" keyword or explicit map of secrets
# uses: salt-extensions/central-artifacts/.github/workflows/ci.yml@main
with:
setup-vault: true
env_vars: ${{ toJson(needs.credentials.outputs.env_vars) }}
# permissions:
# contents: write
# pull-requests: read