Skip to content

Commit 04e987b

Browse files
authored
Harden CI workflows
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 8def4de commit 04e987b

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

.github/.kodiak.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ strip_html_comments = true # default: false
1515
always = true # default: false
1616

1717
[approve]
18-
auto_approve_usernames = ["1gtm", "tamalsaha"]
18+
auto_approve_usernames = ["tamalsaha", "1gtm", "1gtm-app[bot]"]

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,15 @@ jobs:
2020
steps:
2121

2222
- name: Set up Go 1.25
23-
uses: actions/setup-go@v5
23+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
2424
with:
2525
go-version: '1.25'
2626
id: go
2727

28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2929

3030
- name: Prepare Host
3131
run: |
32-
sudo apt-get -qq update || true
33-
sudo apt-get install -y bzr
3432
3533
- name: Run checks
3634
run: |

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CODE_GENERATOR_IMAGE ?= ghcr.io/appscode/gengo:release-1.32
2323

2424
# This version-strategy uses git tags to set the version string
2525
git_branch := $(shell git rev-parse --abbrev-ref HEAD)
26-
git_tag := $(shell git describe --exact-match --abbrev=0 2>/dev/null || echo "")
26+
git_tag := $(shell git describe --tags --exact-match --abbrev=0 2>/dev/null || echo "")
2727
commit_hash := $(shell git rev-parse --verify HEAD)
2828
commit_timestamp := $(shell date --date="@$$(git show -s --format=%ct)" --utc +%FT%T)
2929

0 commit comments

Comments
 (0)