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

Remove unused GH_TOKEN env var #7207

Merged
merged 1 commit into from
May 2, 2023
Merged

Remove unused GH_TOKEN env var #7207

merged 1 commit into from
May 2, 2023

Conversation

jeffwidman
Copy link
Member

@jeffwidman jeffwidman commented May 1, 2023

GH_TOKEN is necessary when using the gh CLI.

We use gh over in images-branch.yml when doing some stuff around forks, but not here in images-latest.yml.

I considered leaving it for consistency, and in case we ever add back gh. But the consistency arg doesn't make sense since images-updater-core.yml doesn't have this. And if we add back gh, we'll get an obvious error message about the problem per github/docs#21930 (comment).

@jeffwidman jeffwidman requested a review from a team as a code owner May 1, 2023 20:33
@abdulapopoola
Copy link
Member

does the token need to be removed from the secrets store too?

@jeffwidman
Copy link
Member Author

does the token need to be removed from the secrets store too?
Good Q, I hadn't even thought of it.

In this case no:

We use gh over inimages-branch.yml when doing some stuff around forks

Also it's set to GITHUB_TOKEN which is set automagically by GitHub Actions, so not something we explicitly set/manage.

`GH_TOKEN` is necessary when using the `gh` CLI.

We use this in `images-branch.yml` when doing some stuff around forks, but not here in `images-latest.yml`.

I considered leaving it for consistency, and in case we ever add back `gh`. But the consistency arg doesn't make sense since `images-updater-core.yml` doesn't have this.

And if we add back `gh`, we'll get an obvious error message about the problem per github/docs#21930 (comment).
@jeffwidman jeffwidman enabled auto-merge (squash) May 2, 2023 03:27
@jeffwidman jeffwidman merged commit 3cacb39 into main May 2, 2023
@jeffwidman jeffwidman deleted the remove-unused-env-var branch May 2, 2023 03:30
brettfo pushed a commit to brettfo/dependabot-core that referenced this pull request Oct 11, 2023
`GH_TOKEN` is necessary when using the `gh` CLI.

We use this in `images-branch.yml` when doing some stuff around forks, but not here in `images-latest.yml`.

I considered leaving it for consistency, and in case we ever add back `gh`. But the consistency arg doesn't make sense since `images-updater-core.yml` doesn't have this.

And if we add back `gh`, we'll get an obvious error message about the problem per github/docs#21930 (comment).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants