Skip to content

Commit c16c492

Browse files
authored
ci: Explicitly specify bash as shell for GHA run steps (#158)
1 parent 2699d90 commit c16c492

File tree

6 files changed

+28
-4
lines changed

6 files changed

+28
-4
lines changed

.github/workflows/checks.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
enable-cache: true
3333

3434
- name: Run unit tests
35+
shell: bash
3536
run: devbox run -- make test
3637

3738
- name: Annotate tests
@@ -60,18 +61,21 @@ jobs:
6061

6162
- if: steps.check_e2e_tests_exist.outputs.files_exists == 'true'
6263
name: Build and install on KinD
64+
shell: bash
6365
run: devbox run -- make dev.run-on-kind
6466
env:
6567
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6668

6769
- if: steps.check_e2e_tests_exist.outputs.files_exists == 'true'
6870
name: Run e2e tests
71+
shell: bash
6972
run: devbox run -- make e2e-test
7073
env:
7174
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7275

7376
- if: steps.check_e2e_tests_exist.outputs.files_exists == 'true' && always()
7477
name: Cleanup KinD cluster
78+
shell: bash
7579
run: devbox run -- make kind.delete
7680

7781
lint-go:
@@ -87,6 +91,7 @@ jobs:
8791

8892
- name: Export golang and golangci-lint versions
8993
id: versions
94+
shell: bash
9095
run: |
9196
echo "golangci-lint=$(devbox run -- golangci-lint version --format short)" >>"${GITHUB_OUTPUT}"
9297
echo "golang=$(devbox run -- go version | grep -o "[[:digit:]]\+.[[:digit:]]\+\(.[[:digit:]]\+\)\?")" >>"${GITHUB_OUTPUT}"
@@ -143,6 +148,7 @@ jobs:
143148
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
144149

145150
- name: Run pre-commit
151+
shell: bash
146152
run: devbox run -- make pre-commit
147153
env:
148154
SKIP: no-commit-to-branch,golangci-lint,actionlint-system
@@ -162,6 +168,7 @@ jobs:
162168

163169
- name: Run chart-testing (list-changed)
164170
id: list-changed
171+
shell: bash
165172
run: |
166173
changed="$(devbox run -- \
167174
ct list-changed --config charts/ct-config.yaml \
@@ -172,12 +179,14 @@ jobs:
172179
173180
- if: steps.list-changed.outputs.changed == 'true'
174181
name: Run chart-testing (lint)
182+
shell: bash
175183
run: |
176184
devbox run -- \
177185
ct lint --config charts/ct-config.yaml
178186
179187
- if: steps.list-changed.outputs.changed == 'true'
180188
name: Create kind cluster
189+
shell: bash
181190
run: |
182191
devbox run -- \
183192
kind create cluster \
@@ -188,12 +197,14 @@ jobs:
188197

189198
- if: steps.list-changed.outputs.changed == 'true'
190199
name: Build Docker images
200+
shell: bash
191201
run: |
192202
devbox run -- \
193203
make release-snapshot
194204
195205
- if: steps.list-changed.outputs.changed == 'true'
196206
name: Sideload docker image
207+
shell: bash
197208
run: |
198209
devbox run -- \
199210
kind load docker-image \
@@ -202,6 +213,7 @@ jobs:
202213
203214
- if: steps.list-changed.outputs.changed == 'true'
204215
name: Setup Cluster API and cert-manager
216+
shell: bash
205217
run: |
206218
devbox run -- \
207219
make clusterctl.init
@@ -210,6 +222,7 @@ jobs:
210222

211223
- if: steps.list-changed.outputs.changed == 'true'
212224
name: Run chart-testing (install)
225+
shell: bash
213226
run: |
214227
devbox run -- \
215228
ct install \
@@ -219,7 +232,8 @@ jobs:
219232
KUBECONFIG: ct-kind-kubeconfig
220233

221234
- if: steps.list-changed.outputs.changed == 'true' && always()
222-
name:
235+
name: Delete chart-testing KinD cluster
236+
shell: bash
223237
run: |
224238
devbox run -- \
225239
kind delete cluster --name chart-testing || true

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
enable-cache: true
3737

3838
- name: Build
39+
shell: bash
3940
run: devbox run -- make build-snapshot
4041

4142
- name: Perform CodeQL Analysis

.github/workflows/dependabot-automation.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
uses: dependabot/fetch-metadata@v1
2323
- uses: actions/checkout@v4
2424
- name: Approve a PR if not already approved
25+
shell: bash
2526
run: |
2627
gh pr checkout "$PR_URL" # sets the upstream metadata for `gh pr status`
2728
if [ "$(gh pr status --json reviewDecision -q .currentBranch.reviewDecision)" != "APPROVED" ]; then
@@ -41,6 +42,7 @@ jobs:
4142
id: dependabot-metadata
4243
uses: dependabot/fetch-metadata@v1
4344
- name: Enable auto-merge for Dependabot PRs
45+
shell: bash
4446
run: gh pr merge --auto --squash "$PR_URL"
4547
env:
4648
PR_URL: ${{github.event.pull_request.html_url}}

.github/workflows/github-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ jobs:
3636
cache-dependency-path: '**/package-lock.json'
3737

3838
- name: Install necessary packages
39+
shell: bash
3940
run: npm ci
4041
working-directory: ./docs/
4142

4243
- name: Build
44+
shell: bash
4345
run: hugo --minify
4446
working-directory: ./docs/
4547

.github/workflows/release-tag.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
password: ${{ secrets.GITHUB_TOKEN }}
3636

3737
- name: Release
38+
shell: bash
3839
run: devbox run -- make release
3940
env:
4041
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitlint

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# `gitlint` is used to validate commit messages via `pre-commit` hook, enabled
22
# via `pre-commit install -t commit-msg`.
33
#
4-
# The format of this file is detailed at https://jorisroovers.com/gitlint/#configuration.
4+
# The format of this file is detailed at https://jorisroovers.com/gitlint/latest/configuration/gitlint_file/.
55

66
[general]
77
# Validate the commit title conforms to conventional commits (https://www.conventionalcommits.org/en/v1.0.0/).
@@ -14,8 +14,12 @@ regex-style-search=True
1414
line-length=120
1515

1616
[ignore-body-lines]
17-
# Ignore dependabot long lines.
18-
regex=^Bumps .+ from .+ to .+\.$
17+
regex=https?://
18+
19+
[ignore-by-author-name]
20+
regex=(.*)dependabot(.*) #
21+
ignore=T1,body-min-length
22+
1923

2024
[contrib-title-conventional-commits]
2125
# Specify allowed commit types. For details see: https://www.conventionalcommits.org/

0 commit comments

Comments
 (0)