rust-bitcoin-unsafe-fast/.github/workflows
Tobin C. Harding a03bc2e5b1
CI: Enable sync-labels for labeler
The `labeler` job has an input `sync-labels` (default `false`) that
configures:

> Whether or not to remove labels when matching files are reverted or no
> longer changed by the PR

ref: https://github.com/actions/labeler

Currently we are using the default which means labels are not synced
when a PR is modified.

Example

A PR initially touches the `hashes` and `bitcoin` crates and the labeler
action adds `C-hashes` and `C-bitcoin`. Later, a force push removes the
changes to `hashes`, the labeler will not remove the `C-hashes` label.
Now the labels are incorrect.

Note on `pull_request_target`:

We use `on: pull_request_target`, this means the action is run in the
target branch not in the PR branch. So the changes in this patch are not
run when this PR is pushed up. Therefore we cannot test this patch but
have to merge it blindly - please review carefully.

Some further security notes that I learned while doing this patch. The
`pull_request_target` has access to GitHub secrets, and in
`manage-pr.yaml` we run `./contrib/gen_label_config.sh`. This is safe
because its the version of this script on `master` that is run not the
version in the PR (so a malicious attacker cannot patch
`gen_label_config.sh` and have it be run). However we need to be aware
that we do not accidentally merge some funky shell and inadvertently
leak secrets.
2024-04-26 08:49:57 +10:00
..
coveralls.yml Revert "ci: gate coverage analysis on whether source code changed" 2024-03-20 14:08:14 +00:00
cron-daily-fuzz.yml Run fuzzer daily 2024-03-27 04:35:23 +11:00
cron-daily-kani.yml ci: rename a couple .yml files to indicate that they're scheduled 2024-02-28 20:47:39 +00:00
cron-daily-update-nightly.yml ci: update the new nightly_version file in cron 2024-04-07 15:16:09 +00:00
cron-weekly-rustfmt.yml ci: rename a couple .yml files to indicate that they're scheduled 2024-02-28 20:47:39 +00:00
gh-release.yml CI: add an automated github releases on new tags 2023-09-10 19:21:22 -03:00
manage-pr.yml CI: Enable sync-labels for labeler 2024-04-26 08:49:57 +10:00
release.yml Bump actions/checkout from 2 to 4 2023-09-09 15:26:36 +00:00
rust.yml CI: Run kani daily job with latest version 2024-04-23 17:48:22 +10:00