Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrected job secrets #151

Merged
merged 2 commits into from
Nov 27, 2023
Merged

corrected job secrets #151

merged 2 commits into from
Nov 27, 2023

Conversation

sumanth-lingappa
Copy link
Contributor

Renamed secrets.AH_TOKEN to secrets.ah_token so that this workflow can be called from other workflows

Renamed `secrets.AH_TOKEN` to `secrets.ah_token` so that this workflow can be called from other workflows
@sumanth-lingappa sumanth-lingappa requested a review from a team as a code owner November 14, 2023 08:05
@sumanth-lingappa sumanth-lingappa requested review from cristianonicolai and Qalthos and removed request for a team November 14, 2023 08:05
@sumanth-lingappa
Copy link
Contributor Author

@ssbarnea, please review this PR. This is blocking our release of netscaler.adc through GitHub actions.

We have used this workflow as below

@sumanth-lingappa
Copy link
Contributor Author

I guess, my changes are not mandatory to this workflow.

Can anyone please help me understand how secrets.AH_TOKEN in this repository will fetch secrets.AH_TOKEN in my repository?

I was of the impression that the correct way to use is secrets.ah_token in this workflow. Please help me understand

@ssbarnea
Copy link
Member

@sumanth-lingappa Can you please include a link to an article explaining this as this is the first time where I see this. secrets: are environment variables, and these are almost always only uppercase. This is how we also defined them, as uppercase.

It is very confusing to refer to environment variables with lowercase.

@sumanth-lingappa
Copy link
Contributor Author

@ssbarnea, I didnt mention them as environment variables. I meant them as local variables.

If you see in in this line, there are local variables -- secrets.ah_token and secrets.ansible_galaxy_api_key.

My argument was, we can use these local variables instead of secrets.AH_TOKEN (in uppercase).

@ssbarnea ssbarnea enabled auto-merge (squash) November 27, 2023 15:45
@ssbarnea ssbarnea merged commit 917c4c4 into ansible:main Nov 27, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants