-
Notifications
You must be signed in to change notification settings - Fork 343
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
support comment --update
with default GITHUB_TOKEN
#1105
Comments
From iterative/cml.dev#271 (comment) The one thing I could see in the code is that |
I think that this limitation is a GH issue. In example:
While
Want I want to say is that both comments are different in terms of API calls and it does not means anything that the actoin can update issue comments, the question is if thats possible. |
As I expected
|
Again, espescially for the github api, comment on an issue differs from a comment on a commit. Lines 102 to 107 in 8aeac20
|
@dacbd thats what I say. GH api behaves different with an issue or a commit comment. |
|
Can users solve this with custom |
Whats the difference of creating a PAT then? CML needs a PAT for the runner |
It could be better for use cases where runners aren't needed. 🤷🏼♂️ |
But... there is an extra effort right ? I mean, you can not do this with a common |
In any case there is nothing we can do to do on our side to fix |
To clarify, @DavidGOrtega do you mean default (non-PAT)
Are you sure? From https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token it seems to imply
while
|
There's also an action for creating commit comments that also doesn't seem to require a PAT. |
Indeed @rogermparent it looks like you are correct and I would say that it appears |
CML comment
--update
requires a user-defined PAT. Can we change the implementation to work with the default token too?Would help a lot with user-friendliness of #1017.
cml send-comment --update
: Raises 'commit_id has been locked' error #888The text was updated successfully, but these errors were encountered: