Commit 7a22622
ci: add repository check to workflows using secrets
Add 'if: github.repository == "ceph/ceph-csi"' condition to workflows
that use GitHub secrets to ensure they only run in the upstream repository:
- mergify-copy-labels.yaml: Added check to job using CEPH_CSI_BOT_TOKEN
- publish-docs.yaml: Added check to deploy job using CEPH_CSI_BOT_NAME/EMAIL
- pull-request-commentor.yaml: Added check to job using CEPH_CSI_BOT_TOKEN
This prevents workflows from attempting to use secrets in forks where
they are not available, avoiding workflow failures.
Assisted-by: AskBob <askbob@ibm.com>
Signed-off-by: Niels de Vos <ndevos@ibm.com>1 parent 5a32810 commit 7a22622
3 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments