Commit 8c97ae8
authored
This commit updates CI config and such to ensure that we're compatible
with crates.io-based trusted publishing. Eventually we'll want the
restriction that only `wasmtime-publish` is the user on all of our
crates, but for now this needs to land and get backported before that's
done.
Changes here are:
* The `publish-to-cratesio.yml` workflow now uses
`rust-lang/crates-io-auth-action@v1` to get a crates.io-based token.
The in-repository secret is no longer used.
* The `publish-to-cratesio.yml` workflow has a new github "Environment"
it runs in named `publish`
* The publish script no longer adds the
`github:bytecodealliance:wasmtime-publish` user to crates.
* The publish script now verifies that the `wasmtime-publish` github
users is on all crates.
* Eventually the publish script will verify that it's the only user on
all the crates, but that's left for a future PR.
External changes are:
* A new `publish` "Environment" was added to this repository.
* All crates are configured on crates.io to have a trusted publishing
workflow for this repository.
* All crates now require being published through a trusted publishing
workflow.
My plan is to backport this to the 40.0.0 branch, run a point release,
fix anything that comes up, and then backport this to all supported
branches of Wasmtime.
1 parent 17d037f commit 8c97ae8
File tree
2 files changed
+41
-47
lines changed- .github/workflows
- scripts
2 files changed
+41
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
25 | | - | |
26 | | - | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
34 | | - | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | 474 | | |
503 | 475 | | |
504 | 476 | | |
| |||
613 | 585 | | |
614 | 586 | | |
615 | 587 | | |
616 | | - | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
617 | 598 | | |
618 | 599 | | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
625 | 605 | | |
626 | | - | |
| 606 | + | |
627 | 607 | | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | | - | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
632 | 618 | | |
633 | | - | |
634 | | - | |
635 | | - | |
636 | | - | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
637 | 625 | | |
638 | 626 | | |
0 commit comments