Skip to content

Commit d7852e8

Browse files
committed
add codebuild specific changes to workflows
Signed-off-by: Arjun Raja Yogidas <[email protected]>
1 parent 81589b4 commit d7852e8

File tree

6 files changed

+13
-2
lines changed

6 files changed

+13
-2
lines changed

.github/workflows/prebuild.yml

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
runs-on: codebuild-soci-prebuild-workflow-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-small
5858
steps:
5959
- uses: actions/checkout@v4
60+
- uses: actions/setup-go@v5
61+
with:
62+
go-version: ${{ env.GO_VERSION }}
6063
- uses: golangci/golangci-lint-action@v6
6164
with:
6265
version: v${{ env.GOLANGCI_LINT_VERSION }}
@@ -67,6 +70,7 @@ jobs:
6770
runs-on: codebuild-soci-prebuild-workflow-${{ github.run_id }}-${{ github.run_attempt }}-ubuntu-7.0-small
6871
steps:
6972
- uses: actions/checkout@v4
73+
- run: pip install yamllint
7074
- run: yamllint .
7175

7276
shellcheck:

.github/workflows/releases.yml

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
STATIC_BINARY_NAME: ''
2929
steps:
3030
- uses: actions/checkout@v4
31+
- uses: actions/setup-go@v5
32+
with:
33+
go-version: ${{ env.GO_VERSION }}
3134
- name: Export cleaned release tag
3235
run: |
3336
export release_tag=${GITHUB_REF#refs/*/} # Strip down to raw tag name

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ require (
6969
github.com/imdario/mergo v0.3.13 // indirect
7070
github.com/josharian/intern v1.0.0 // indirect
7171
github.com/json-iterator/go v1.1.12 // indirect
72+
github.com/kunalkushwaha/ltag v0.2.5 // indirect
7273
github.com/mailru/easyjson v0.7.6 // indirect
7374
github.com/moby/locker v1.0.1 // indirect
7475
github.com/moby/sys/sequential v0.5.0 // indirect

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
153153
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
154154
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
155155
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
156+
github.com/kunalkushwaha/ltag v0.2.5 h1:kW2/mVXqIUG5NvkZQCTeGKMDjBJ/BGVEgrdfHyA3fnI=
157+
github.com/kunalkushwaha/ltag v0.2.5/go.mod h1:w1hVMWOh870f+WAv/UIoZAy0bHCbPP4+W6JxNcPUiQA=
156158
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348 h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4=
157159
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348/go.mod h1:B69LEHPfb2qLo0BaaOLcbitczOKLWTsrBG9LczfCD4k=
158160
github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=

scripts/check-dco.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ set -eux -o pipefail
1818

1919
# the very first auto-commit doesn't have a DCO and the first real commit has a slightly different format. Exclude those when doing the check.
2020
# We erreneously allowed a non-signed commit to be pushed to main.
21-
"$(go env GOPATH)"/bin/git-validation -run DCO -range HEAD~20..HEAD
21+
git-validation -run DCO -range HEAD~20..HEAD

scripts/check-ltag.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ set -eux -o pipefail
1919
CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2020
SOCI_SNAPSHOTTER_PROJECT_ROOT="${CUR_DIR}/.."
2121

22+
2223
# check ltag
2324
pushd "${SOCI_SNAPSHOTTER_PROJECT_ROOT}"
24-
"$(go env GOPATH)"/bin/ltag -t "${SOCI_SNAPSHOTTER_PROJECT_ROOT}/.headers" -check -v || (echo "The files listed above are missing a licence header. Please run ./scripts/add-ltag.sh"; exit 1)
25+
ltag -t "${SOCI_SNAPSHOTTER_PROJECT_ROOT}/.headers" -check -v || (echo "The files listed above are missing a licence header. Please run ./scripts/add-ltag.sh"; exit 1)
2526
popd

0 commit comments

Comments
 (0)