-
Notifications
You must be signed in to change notification settings - Fork 124
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
GitHub actions are failint #467
Comments
I added the fetch-depth thing to no avail but then I realized there are 2 of them. I'm going to try |
I think the GH Actions is not fetching the tags locally. I think its doing a shallow clone of the SHA but without any branches/tags in the cloned repo. |
Do you want to try adding fetch-depth:0 to the checkout? Alternatively we could try a post-checkout fetch of the tags or unshallow the clone? |
Here is the result of adding https://github.com/bazelbuild/bazel-watcher/runs/2167896165?check_suite_focus=true But it doesn't look like it showed up on the npm side https://www.npmjs.com/package/@bazel/ibazel Thanks for helping me get this closer! |
For better or worse, I hade made it only publish to npm if it was the result of creating a new GH release |
You could remove that condition, or try to create a formal GH release (not just a tag and manually running it) |
That condition corresponds with the condition to upload the assets to the real GH release |
Let's try doing a full release! https://github.com/bazelbuild/bazel-watcher/actions/runs/677723048 |
That looks VERY promising! Now to figure out how to allow a service account to deploy when you have two factor turned on... this'll be fun... |
I think this is the one https://github.com/bazelbuild/bazel-watcher/actions/runs/677790605 |
I don’t think you want 2fa on the publishing token at all. Option 1? |
If I pick option 1 that will disable the requirement that MFA be turned on for manual pushes which means that someone who guesses my password alone would be able to publish. Option 2 seems like the correct one since we are using automation tokens and those automation tokens are not bound to MFA? |
As a quick test I tried releasing Lessons learned from this test:
|
Have you tried the steps I put here? #456 (comment) I think you need a new explicit token for automation. |
Since I don't have a good way to validate the kind of token behind that, I'm going to try generating a new automation token and see what happens. |
I think that might have been it! Thanks so much @joeljeske for all your hard work on this. I really appreciate it. |
There appears to be something wrong with the GitHub actions setup for getting things stamped.
The text was updated successfully, but these errors were encountered: