a904c69a58
* Update github-actions * Match scripts/lint.sh golangci-lint version to CI workflow The workflow moved to v2.13.1 while local linting stayed on v2.12.2. go1.27 support landed in golangci-lint v2.13.0, so with this PR bumping CI to Go 1.27 a developer on that toolchain would see `make lint` fail outright. Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Bryan Beverly <[email protected]> Co-authored-by: Cursor <[email protected]>
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
name: Smoke
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
smoke:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
- name: Install Go
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
|
|
with:
|
|
go-version: "1.27"
|
|
- name: Smoke
|
|
run: |
|
|
set -e
|
|
go run . git https://github.com/dustin-decker/secretsandstuff.git > /dev/null
|
|
go run . github --repo https://github.com/dustin-decker/secretsandstuff.git > /dev/null
|
|
zombies:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
|
|
- name: Install Go
|
|
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6
|
|
with:
|
|
go-version: "1.27"
|
|
- name: Run trufflehog
|
|
run: |
|
|
set -e
|
|
go run . git --no-verification file://. > /dev/null
|
|
# This case previously had a deadlock issue and left zombies after trufflehog exited #3379
|
|
go run . git --no-verification https://github.com/git-test-fixtures/binary.git > /dev/null
|
|
- name: Check for running git processes and zombies
|
|
run: |
|
|
if pgrep -x "git" > /dev/null
|
|
then
|
|
echo "Git processes are still running"
|
|
exit 1
|
|
else
|
|
echo "No git processes found"
|
|
fi
|
|
|
|
if ps -A -ostat,ppid | grep -e '[zZ]' > /dev/null
|
|
then
|
|
echo "Zombie processes found"
|
|
exit 1
|
|
else
|
|
echo "No zombie processes found"
|
|
fi
|