Skip to content

Commit

Permalink
use secret as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
mmtktl committed Dec 13, 2024
1 parent d42d37f commit 56e406d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ansible-lint-github-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
uses: actions/checkout@v4

- name: Populate ansible config
env:
RH_AUTOMATION_HUB_TOKEN: ${{ secrets.RH_AUTOMATION_HUB_TOKEN }}
run: |
cat <<EOF > ansible.cfg
[defaults]
Expand All @@ -25,12 +27,12 @@ jobs:
[galaxy_server.automation_hub_published]
url=https://console.redhat.com/api/automation-hub/content/published/
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
token=${{ secrets.RH_AUTOMATION_HUB_TOKEN }}
token= $RH_AUTOMATION_HUB_TOKEN
[galaxy_server.automation_hub_validated]
url=https://console.redhat.com/api/automation-hub/content/validated/
auth_url=https://sso.redhat.com/auth/realms/redhat-external/protocol/openid-connect/token
token=${{ secrets.RH_AUTOMATION_HUB_TOKEN }}
token= $RH_AUTOMATION_HUB_TOKEN
[galaxy_server.galaxy]
url=https://galaxy.ansible.com/
Expand Down

0 comments on commit 56e406d

Please sign in to comment.