Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs(README.md): Describe how to use PAT token#1085

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
csikb wants to merge2 commits intosemantic-release:master
base:master
Choose a base branch
Loading
fromcsikb:patch-1

Conversation

@csikb
Copy link

@csikbcsikb commentedAug 29, 2025
edited by heartsbot
Loading

Add detailed description on how to use PAT for Releases

name:Releaseon:pull_request:merge_group:push:branches:[ main ]permissions:read-alljobs:release:name:Releaseruns-on:ubuntu-lateststeps:      -uses:actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8# v5.0.0with:fetch-depth:0# When I didn't specify this, I got the following error (below)token:${{ secrets.RELEASE_GITHUB_TOKEN }}      -uses:actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020# v4.4.0with:node-version:lts/jod      -run:npm install -g semantic-release@24.2.5      -run:semantic-releaseenv:GH_TOKEN:${{ secrets.RELEASE_GITHUB_TOKEN }}

https://github.com/BSStudio/bss-web-admin-backend/actions/runs/17317813582/job/49164063483#step:5:16

The command "git push --dry-run --no-verify https://[secure]@github.com/{{repository}} HEAD:main" failed with the error message remote: Permission to {{repository}}.git denied to github-actions[bot].

Add detailed description on how to use PAT for Releases
@csikbcsikb changed the titleUpdate README.mddocs(README.md): Describe how to use PAT tokenAug 29, 2025
@csikb
Copy link
Author

csikb commentedSep 2, 2025
edited by heartsbot
Loading

Hi@babblebey, can I ask for a review and an approval for this PR?

I was working with semantic release, and I think this information was really crucial for creating Releases on GitHub

@travi
Copy link
Member

travi commentedSep 2, 2025
edited by heartsbot
Loading

thanks for the feedback here,@csikb. these details about how the workflow token impacts things can be confusing, so i'm very open to improving our guidance.

however, this pr currently differs from our current guidance on our documentation site:https://semantic-release.gitbook.io/semantic-release/recipes/ci-configurations/github-actions#pushing-package.json-changes-to-your-repository

this should only be an issue when using the git plugin, which we strongly discourage. when someone decides that is necessary, despite our guidance, there are multiple options. one is to provide a PAT to the checkout step so that it gets persisted through the process, like you've suggested. the other is to prevent the checkout credentials from being persisted, so the later provided token is able to be used.

i think it would be best to be consistent in our documentation. could we instead link to the documentation site from here? if we think some clarification there would be helpful, i'm open to that, but i think centralizing to a single message is valuable.

@travi
Copy link
Member

travi commentedSep 2, 2025
edited by heartsbot
Loading

thinking about this further, i think this highlights further why it is important to centralize this message to the documentation site. this situation arrises because of how git credentials are managed by a github actions workflow and how they can impact later commits. neither of those parts are related to the github plugin, which is what this repo is for. the git commits impact the git plugin and there is no plugin for using github actions as the ci context. if this makes sense to include anywhere, it might fit better with the git plugin. i think the most i can see including in this repo along the lines of a sidenote suggesting that someone might be likely to also be using actions if they are using github and that documentation for that context can be found in the doc site

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@csikb@travi

[8]ページ先頭

©2009-2025 Movatter.jp