Skip to content

fix: add secret/token to major-version-updater #57

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

jmeridth
Copy link
Member

@jmeridth jmeridth commented Apr 8, 2025

  • add docs
  • add link to docs from README
  • fix tag name argument from underscore to hyphen

@jmeridth
Copy link
Member Author

jmeridth commented Apr 8, 2025

We may not be able to do major-version-updater as a reusable workflow due to permissions. When testing I'm getting permissions errors. Trying to solve.

Copy link

This PR is stale because it has been open 20 days with no activity. Replace the no-pr-activity label with a work-in-progress label or comment or this will be closed in 5 days.

Copy link

This PR is stale because it has been open 20 days with no activity. Replace the no-pr-activity label with a work-in-progress label or comment or this will be closed in 5 days.

- [x] add docs
- [x] add link to docs from README
- [x] fix tag name argument from underscore to hyphen
- [x] use github token in right places (GITHUB_TOKEN or arg)

Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth force-pushed the jm_major_version_updater_docs branch from a903107 to 1e02d9e Compare June 2, 2025 05:50
@jmeridth jmeridth marked this pull request as ready for review June 2, 2025 05:50
@Copilot Copilot AI review requested due to automatic review settings June 2, 2025 05:50
@jmeridth jmeridth requested a review from a team as a code owner June 2, 2025 05:50
@jmeridth
Copy link
Member Author

jmeridth commented Jun 2, 2025

Merging so I can test from my testing repo.

@jmeridth jmeridth merged commit 6d41e9f into main Jun 2, 2025
8 checks passed
@jmeridth jmeridth deleted the jm_major_version_updater_docs branch June 2, 2025 05:51
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for a github-token secret in the Major Version Updater workflow, updates documentation, and standardizes the tag-name input.

  • Add github-token secret requirement to major-version-updater.yml and propagate it through tests and docs
  • Update README to link the new Major Version Updater documentation
  • Rename tag_name to tag-name across relevant workflows

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/major-version-updater.md Documented github-token secret input
README.md Added link to Major Version Updater docs
.github/workflows/test-major-version-updater.yaml Updated tag_nametag-name, added github-token secret
.github/workflows/release-image.yaml Added github-token input (check action compatibility)
.github/workflows/release-discussion.yaml Switched from env GH_TOKEN to github-token input
.github/workflows/major-version-updater.yaml Introduced secrets.github-token and renamed tag_name
Comments suppressed due to low confidence (3)

.github/workflows/major-version-updater.yaml:12

  • The workflow only requests contents: read but force-pushing tags requires contents: write. Update permissions to contents: write or add write for tags.
permissions:

.github/workflows/release-image.yaml:72

  • The docker/build-push-action (or whichever action this step uses) does not accept a github-token input. Confirm the action supports this parameter or remove it to prevent workflow failures.
github-token: ${{ secrets.github-token }}

.github/workflows/release-discussion.yaml:46

  • The abirismyname/create-discussion action expects a token via repo-token or github_token input (or via env.GH_TOKEN). Verify the correct parameter name, as github-token may not be recognized.
github-token: ${{ secrets.github-token }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant