Skip to content

Commit 4646fc0

Browse files
authored
Harden CI workflows
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent ec77dba commit 4646fc0

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
@@ -16,4 +16,4 @@ strip_html_comments = true # default: false
1616
always = true # default: false
1717

1818
[approve]
19-
auto_approve_usernames = ["1gtm", "tamalsaha"]
19+
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
@@ -18,15 +18,13 @@ jobs:
1818
runs-on: ubuntu-24.04
1919
steps:
2020
- name: Set up Go 1.25
21-
uses: actions/setup-go@v5
21+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
2222
with:
2323
go-version: '1.25'
2424

2525
- name: Check out code into the Go module directory
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
2727

2828
- name: Run checks
2929
run: |
30-
sudo apt-get -qq update
31-
sudo apt-get install -y bzr || true
3230
make ci

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BIN := client-go
2121

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

0 commit comments

Comments
 (0)