Skip to content

Commit e595ea5

Browse files
authored
ci: run main jobs from main repo only, check go mod tidy diffs (#798)
1 parent ab3df8f commit e595ea5

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

.github/workflows/fossa.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111
jobs:
1212
fossa:
1313
runs-on: ubuntu-latest
14+
if: github.repository == 'open-telemetry/opentelemetry-ebpf-instrumentation'
1415
steps:
1516
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1617
with:

.github/workflows/ghcr_publish_testing_images.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,3 @@ jobs:
161161
tag-version: ${{ steps.image_tag.outputs.imgtag }}
162162
tag-id: python
163163
file: test/integration/components/pythonserver/Dockerfile
164-

.github/workflows/publish_dockerhub_k8s_cache_main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010

1111
jobs:
1212
build-and-push-image:
13+
if: github.repository == 'open-telemetry/opentelemetry-ebpf-instrumentation'
1314
permissions:
1415
id-token: write
1516
packages: write
@@ -56,4 +57,4 @@ jobs:
5657
push: true
5758
tags: ${{ steps.meta.outputs.tags }}
5859
labels: ${{ steps.meta.outputs.labels }}
59-
platforms: linux/amd64,linux/arm64
60+
platforms: linux/amd64,linux/arm64

.github/workflows/publish_dockerhub_main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010

1111
jobs:
1212
build-and-push-image:
13+
if: github.repository == 'open-telemetry/opentelemetry-ebpf-instrumentation'
1314
permissions:
1415
id-token: write
1516
packages: write
@@ -56,4 +57,4 @@ jobs:
5657
push: true
5758
tags: ${{ steps.meta.outputs.tags }}
5859
labels: ${{ steps.meta.outputs.labels }}
59-
platforms: linux/amd64,linux/arm64
60+
platforms: linux/amd64,linux/arm64

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
go-version: ${{ matrix.go }}
3131
cache: "false"
3232
- name: Run verification and unit tests
33-
run: make docker-generate verify cov-exclude-generated
33+
run: make docker-generate verify cov-exclude-generated check-go-mod
3434
- name: Report coverage
3535
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
3636
env:

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,3 +449,8 @@ check-clean-work-tree:
449449
echo 'Working tree is not clean, did you forget to run "make"?' \
450450
exit 1; \
451451
fi
452+
453+
.PHONY: check-go-mod
454+
check-go-mod:
455+
go mod tidy
456+
git diff -s --exit-code

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,6 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
297297
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
298298
github.com/yusufpapurcu/wmi v1.2.4 h1:zFUKzehAFReQwLys1b/iSMl+JQGSCSjtVqQn9bBrPo0=
299299
github.com/yusufpapurcu/wmi v1.2.4/go.mod h1:SBZ9tNy3G9/m5Oi98Zks0QjeHVDvuK0qfxQmPyzfmi0=
300-
go.mongodb.org/mongo-driver/v2 v2.3.0 h1:sh55yOXA2vUjW1QYw/2tRlHSQViwDyPnW61AwpZ4rtU=
301-
go.mongodb.org/mongo-driver/v2 v2.3.0/go.mod h1:jHeEDJHJq7tm6ZF45Issun9dbogjfnPySb1vXA7EeAI=
302300
go.mongodb.org/mongo-driver/v2 v2.3.1 h1:WrCgSzO7dh1/FrePud9dK5fKNZOE97q5EQimGkos7Wo=
303301
go.mongodb.org/mongo-driver/v2 v2.3.1/go.mod h1:jHeEDJHJq7tm6ZF45Issun9dbogjfnPySb1vXA7EeAI=
304302
go.opentelemetry.io/auto/sdk v1.2.1 h1:jXsnJ4Lmnqd11kwkBV2LgLoFMZKizbCi5fNZ/ipaZ64=

0 commit comments

Comments
 (0)