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

Set ${{ github.token }} as a default value for githubToken #210

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

anatawa12
Copy link

@anatawa12 anatawa12 commented Dec 24, 2022

Changes

  • Set ${{ github.token }} as a default value for githubToken

Closes #209

Checklist

  • Read the contribution guide and accept the code of conduct
  • Readme (updated or not needed)
  • Tests (added, updated or not needed)

@github-actions
Copy link

Cat Gif

@webbertakken
Copy link
Member

The lint error is caused by #206

The other errors I'd expect to pass, but I wont have time to look at it until later.

@timcassell
Copy link
Contributor

If this default is changing, the docs should also be updated to show how to disable it (i.e. so we can use a different test reporter #142).

@webbertakken
Copy link
Member

The default isn't changing. This is just a documentation file. I don't think there's a real relation with that issue tbh.

@timcassell
Copy link
Contributor

The default isn't changing. This is just a documentation file.

Huh? It looks like the point of this PR is to change the default. I don't get it.

I don't think there's a real relation with that issue tbh.

True, but I and others already have other test reporters set up (due to that issue), and changing this default will make our actions start double reporting test results if we don't manually remove it.

@webbertakken
Copy link
Member

Huh? It looks like the point of this PR is to change the default. I don't get it.

actions.yml is just a documentation file. This PR is only correcting that documentation to what is already happening. If I remember correctly the token is actually passed by default by GitHub Actions.

@anatawa12
Copy link
Author

I'm actually changing the default value so I may need to change the documentation.

Some part of action.yml including default is not just a documentation. It changes behavior.

@webbertakken
Copy link
Member

Ah I didn't realise that this actually works now. The docs indeed say that it should work.

When GH Actions just started out (when we created this action) we actually held all the defaults in our code (or I've been ignorant of it all this time).

My bad.

@webbertakken
Copy link
Member

webbertakken commented Dec 27, 2022

Looks like this is a breaking change for public repositories (like this very repo), because the default permissions from public PRs don't include writing the checks results. It's causing the workflows to fail with the following error:

Error: Resource not accessible by integration

Any ideas on how you'd solve that?

@anatawa12
Copy link
Author

First idea I come up with is ignoring permission error on uploading check results and make warning instead. This doesn't makes failure in most CI but this may be confusing.

Another idea is postpond this change to next major release. this is safer but I don't like this.

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.

Set default value for githubToken?
3 participants