Skip to content

Commit 0a34f27

Browse files
committed
ci: full clone
1 parent 2892112 commit 0a34f27

File tree

3 files changed

+8
-16
lines changed

3 files changed

+8
-16
lines changed

.github/workflows/build.yml

+5-13
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,6 @@ name: build
22

33
on:
44
pull_request_target:
5-
paths:
6-
- "go.*"
7-
- "**/*.go"
8-
- "Taskfile.yml"
9-
- "Dockerfile.release"
10-
- ".github/workflows/*.yml"
115

126
permissions:
137
contents: read
@@ -19,6 +13,8 @@ jobs:
1913
runs-on: ubuntu-latest
2014
steps:
2115
- uses: actions/checkout@v4
16+
with:
17+
ref: ${{ github.event.pull_request.head.sha }}
2218

2319
- uses: actions/setup-go@v5
2420
with:
@@ -46,6 +42,8 @@ jobs:
4642
image: returntocorp/semgrep
4743
steps:
4844
- uses: actions/checkout@v4
45+
with:
46+
ref: ${{github.head_ref}}
4947

5048
- uses: actions/checkout@v4
5149
with:
@@ -63,16 +61,10 @@ jobs:
6361

6462
test:
6563
runs-on: ubuntu-latest
66-
env:
67-
DOCKER_CLI_EXPERIMENTAL: "enabled"
6864
steps:
6965
- uses: actions/checkout@v4
7066
with:
71-
fetch-depth: 0
72-
73-
# - uses: docker/setup-qemu-action@v3
74-
75-
# - uses: docker/setup-buildx-action@v3
67+
ref: ${{github.head_ref}}
7668

7769
- uses: actions/setup-go@v5
7870
with:

Taskfile.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ tasks:
2020

2121
build:
2222
desc: Build the binary
23+
cmds:
24+
- go build -o scm-engine .
2325
sources:
2426
- ./**/*.go
2527
generates:
2628
- ./scm-engine
27-
cmds:
28-
- go build -o scm-engine .
2929

3030
test:
3131
desc: Run tests

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func main() {
2727
app := &cli.App{
2828
Name: "scm-engine",
2929
Usage: "GitHub/GitLab automation",
30-
Copyright: "Christian Winther",
30+
Copyright: "Christian Winther?!",
3131
EnableBashCompletion: true,
3232
Suggest: true,
3333
Version: fmt.Sprintf("%s (date: %s; commit: %s)", version, date, commit),

0 commit comments

Comments
 (0)