Commit 679c72a
authored
Harden CI workflows (#139)
* Use dynamic github token
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Harden GitHub Actions workflows
- Pin every action ref to a full-length commit SHA with a trailing
version comment, so floating tags like @v4 can't be re-pointed at
malicious code.
- Bump outdated actions/checkout@v1 to @v4.3.1 (where present).
- Tag-triggered workflows now check out with fetch-depth: 1 and
fetch-tags: true so the tag ref is available downstream.
- release-tracker.yml grants contents: write at the job level so the
default GITHUB_TOKEN can push commits/tags back to the repo.
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Migrate firebase-tools auth to service account
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Grant preview-website job the permissions Firebase deploy needs
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Use GitHub App token for release tracker comments
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Apply kubedb/installer#2281: harden CI workflows
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Remove Prepare git step from release-tracker.yml
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Rename LGTM App token step id to lgtm-app-token
Signed-off-by: Tamal Saha <tamal@appscode.com>
* release-tracker.yml: gate at job level with merged == true
Signed-off-by: Tamal Saha <tamal@appscode.com>
* release-tracker.yml: drop permissions block
Signed-off-by: Tamal Saha <tamal@appscode.com>
* release-tracker.yml: grant permission-pull-requests to LGTM App
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Use node-version: '22' in setup-node steps
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Normalize Prepare git user, fetch-depth, drop permission-issues
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Add 1gtm-app[bot] to kodiak auto_approve_usernames
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Normalize kodiak auto_approve_usernames
Signed-off-by: Tamal Saha <tamal@appscode.com>
* Bump softprops/action-gh-release to v2.6.2; add permissions
Signed-off-by: Tamal Saha <tamal@appscode.com>
---------
Signed-off-by: Tamal Saha <tamal@appscode.com>1 parent d5e296b commit 679c72a
6 files changed
Lines changed: 40 additions & 37 deletions
File tree
- .github
- workflows
- hack/scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | | - | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | | - | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | | - | |
| 34 | + | |
31 | 35 | | |
32 | | - | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
62 | | - | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
35 | 32 | | |
36 | 33 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 34 | | |
41 | | - | |
42 | | - | |
| 35 | + | |
| 36 | + | |
43 | 37 | | |
44 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
20 | 22 | | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | | - | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | | - | |
| 33 | + | |
31 | 34 | | |
32 | | - | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
59 | | - | |
60 | | - | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
| 65 | + | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
69 | | - | |
70 | | - | |
| 73 | + | |
71 | 74 | | |
72 | 75 | | |
| 76 | + | |
| 77 | + | |
73 | 78 | | |
74 | 79 | | |
75 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
0 commit comments