Commit e4b90da
authored
Harden CI workflows (#84)
* 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>
* Add job permissions for workflow
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>
* Makefile: use --tags in git describe so lightweight tags resolve
Signed-off-by: Tamal Saha <tamal@appscode.com>
---------
Signed-off-by: Tamal Saha <tamal@appscode.com>1 parent 65e04ff commit e4b90da
4 files changed
Lines changed: 12 additions & 8 deletions
| 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 | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
28 | | - | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
33 | | - | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | | - | |
| 46 | + | |
43 | 47 | | |
44 | 48 | | |
45 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments