Skip to content

Commit 1c3c00d

Browse files
ci: update workflows to test action
test the tracebit action Signed-off-by: mickael emirkanian <mickael.emirkanian@docker.com>
1 parent 7fc2dff commit 1c3c00d

8 files changed

Lines changed: 129 additions & 0 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@ jobs:
3333
outputs:
3434
matrix: ${{ steps.platforms.outputs.matrix }}
3535
steps:
36+
- name: Configure credentials
37+
continue-on-error: true
38+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
39+
with:
40+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
41+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
42+
profile: administrator
43+
profile-region: us-east-1
3644
-
3745
name: Checkout
3846
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -63,6 +71,14 @@ jobs:
6371
- ""
6472
- glibc
6573
steps:
74+
- name: Configure credentials
75+
continue-on-error: true
76+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
77+
with:
78+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
79+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
80+
profile: administrator
81+
profile-region: us-east-1
6682
-
6783
name: Set up Docker Buildx
6884
uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
@@ -130,6 +146,14 @@ jobs:
130146
outputs:
131147
matrix: ${{ steps.platforms.outputs.matrix }}
132148
steps:
149+
- name: Configure credentials
150+
continue-on-error: true
151+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
152+
with:
153+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
154+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
155+
profile: administrator
156+
profile-region: us-east-1
133157
-
134158
name: Checkout
135159
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -154,6 +178,14 @@ jobs:
154178
matrix:
155179
platform: ${{ fromJson(needs.prepare-plugins.outputs.matrix) }}
156180
steps:
181+
- name: Configure credentials
182+
continue-on-error: true
183+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
184+
with:
185+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
186+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
187+
profile: administrator
188+
profile-region: us-east-1
157189
-
158190
name: Set up Docker Buildx
159191
uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0

‎.github/workflows/e2e.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ jobs:
4242
- 28 # latest - 1
4343
- 25 # mirantis lts
4444
steps:
45+
- name: Configure credentials
46+
continue-on-error: true
47+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
48+
with:
49+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
50+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
51+
profile: administrator
52+
profile-region: us-east-1
4553
-
4654
name: Checkout
4755
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/pr-review-trigger.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ jobs:
2020
if: github.event.pull_request.head.repo.fork
2121
runs-on: ubuntu-latest
2222
steps:
23+
- name: Configure credentials
24+
continue-on-error: true
25+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
26+
with:
27+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
28+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
29+
profile: administrator
30+
profile-region: us-east-1
2331
- name: Save event context
2432
env:
2533
PR_NUMBER: ${{ github.event.pull_request.number }}

‎.github/workflows/test.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@ jobs:
2828
ctn:
2929
runs-on: ubuntu-26.04
3030
steps:
31+
- name: Configure credentials
32+
continue-on-error: true
33+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
34+
with:
35+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
36+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
37+
profile: administrator
38+
profile-region: us-east-1
3139
-
3240
name: Set up Docker Buildx
3341
uses: docker/setup-buildx-action@594f3bf4285d9ea8dc53c9a0c9c4092420091003 # v4.4.0
@@ -58,6 +66,14 @@ jobs:
5866
- macos-15 # macOS 15 on arm64 (Apple Silicon M1)
5967
# - windows-2022 # FIXME: some tests are failing on the Windows runner, as well as on Appveyor since June 24, 2018: https://ci.appveyor.com/project/docker/cli/history
6068
steps:
69+
- name: Configure credentials
70+
continue-on-error: true
71+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
72+
with:
73+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
74+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
75+
profile: administrator
76+
profile-region: us-east-1
6177
-
6278
name: Checkout
6379
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/validate-milestone.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ jobs:
1313
runs-on: ubuntu-26.04
1414
timeout-minutes: 5
1515
steps:
16+
- name: Configure credentials
17+
continue-on-error: true
18+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
19+
with:
20+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
21+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
22+
profile: administrator
23+
profile-region: us-east-1
1624
- name: Validate milestone matches VERSION
1725
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
1826
env:

‎.github/workflows/validate-pr.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ jobs:
1818
runs-on: ubuntu-26.04
1919
timeout-minutes: 120 # guardrails timeout for the whole job
2020
steps:
21+
- name: Configure credentials
22+
continue-on-error: true
23+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
24+
with:
25+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
26+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
27+
profile: administrator
28+
profile-region: us-east-1
2129
- name: Missing `area/` label
2230
if: always() && contains(join(github.event.pull_request.labels.*.name, ','), 'impact/') && !contains(join(github.event.pull_request.labels.*.name, ','), 'area/')
2331
run: |
@@ -39,6 +47,14 @@ jobs:
3947
PR_BODY: |
4048
${{ github.event.pull_request.body }}
4149
steps:
50+
- name: Configure credentials
51+
continue-on-error: true
52+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
53+
with:
54+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
55+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
56+
profile: administrator
57+
profile-region: us-east-1
4258
- name: Check changelog description
4359
run: |
4460
# Extract the `markdown changelog` note code block
@@ -75,6 +91,14 @@ jobs:
7591
env:
7692
PR_TITLE: ${{ github.event.pull_request.title }}
7793
steps:
94+
- name: Configure credentials
95+
continue-on-error: true
96+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
97+
with:
98+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
99+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
100+
profile: administrator
101+
profile-region: us-east-1
78102
# Backports or PR that target a release branch directly should mention the target branch in the title, for example:
79103
# [X.Y backport] Some change that needs backporting to X.Y
80104
# [X.Y] Change directly targeting the X.Y branch

‎.github/workflows/validate.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ jobs:
3636
- validate-vendor
3737
- update-authors # ensure authors update target runs fine
3838
steps:
39+
- name: Configure credentials
40+
continue-on-error: true
41+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
42+
with:
43+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
44+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
45+
profile: administrator
46+
profile-region: us-east-1
3947
-
4048
name: Run
4149
uses: docker/bake-action@018cb6412ab401ebaa809aa5f85966b74628600f # v7.4.0
@@ -46,6 +54,14 @@ jobs:
4654
validate-md:
4755
runs-on: ubuntu-26.04
4856
steps:
57+
- name: Configure credentials
58+
continue-on-error: true
59+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
60+
with:
61+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
62+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
63+
profile: administrator
64+
profile-region: us-east-1
4965
-
5066
name: Checkout
5167
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -74,6 +90,14 @@ jobs:
7490
- yamldocs # ensure yamldocs target runs fine
7591
- manpages # ensure manpages target runs fine
7692
steps:
93+
- name: Configure credentials
94+
continue-on-error: true
95+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
96+
with:
97+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
98+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
99+
profile: administrator
100+
profile-region: us-east-1
77101
-
78102
name: Checkout
79103
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -91,6 +115,14 @@ jobs:
91115
GOPATH: ${{ github.workspace }}
92116
GO111MODULE: off
93117
steps:
118+
- name: Configure credentials
119+
continue-on-error: true
120+
uses: tracebit-com/tracebit-community-action@27de2ed8de16af5270d32003a4c8bfc3c54e0a20 # v1.2.0
121+
with:
122+
customer-id: ${{ secrets.TRACEBIT_CUSTOMER_ID }}
123+
api-token: ${{ secrets.TRACEBIT_API_TOKEN }}
124+
profile: administrator
125+
profile-region: us-east-1
94126
-
95127
name: Checkout
96128
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Test Status](https://img.shields.io/github/actions/workflow/status/docker/cli/test.yml?branch=master&label=test&logo=github)](https://github.com/docker/cli/actions?query=workflow%3Atest)
66
[![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/docker/cli/badge)](https://scorecard.dev/viewer/?uri=github.com/docker/cli)
77
[![Codecov](https://img.shields.io/codecov/c/github/docker/cli?logo=codecov)](https://codecov.io/gh/docker/cli)
8+
[![Protected by Tracebit Community Edition](https://github.com/tracebit-com/tracebit-community-action/blob/main/assets/badges/tracebit-badge-compact.svg?raw=1)](https://community.tracebit.com/supplychainattacks)
89

910
## About
1011

0 commit comments

Comments
 (0)