Skip to content

Commit 5c1a29e

Browse files
committed
gha: configure codecov slug properly
Our main branch has been failing to upload coverage to CodeCov for a month with the following error: error - 2025-11-11 05:32:32,830 -- Upload failed: {"message":"Repository not found"} Hopefully configuring the slug explicitly will resolve this issue... Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
1 parent 530682f commit 5c1a29e

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,10 @@ jobs:
8686
- run: go tool covdata textfmt -i "$GOCOVERDIR" -o "$COVERAGE"
8787
- name: codecov
8888
uses: codecov/codecov-action@v5
89-
env:
90-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9189
with:
90+
token: ${{ secrets.CODECOV_TOKEN }}
91+
slug: opencontainers/umoci
9292
files: ${{ env.COVERAGE }}
93-
flags: unit,macos
9493
- name: upload coverage
9594
uses: actions/upload-artifact@v5
9695
with:
@@ -122,11 +121,10 @@ jobs:
122121
- run: go tool covdata textfmt -i "$GOCOVERDIR" -o "$COVERAGE"
123122
- name: codecov
124123
uses: codecov/codecov-action@v5
125-
env:
126-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
127124
with:
125+
token: ${{ secrets.CODECOV_TOKEN }}
126+
slug: opencontainers/umoci
128127
files: ${{ env.COVERAGE }}
129-
flags: unit,linux
130128
- name: upload coverage
131129
uses: actions/upload-artifact@v5
132130
with:
@@ -172,11 +170,10 @@ jobs:
172170
- run: go tool covdata textfmt -i "$GOCOVERDIR" -o "$COVERAGE"
173171
- name: codecov
174172
uses: codecov/codecov-action@v5
175-
env:
176-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
177173
with:
174+
token: ${{ secrets.CODECOV_TOKEN }}
175+
slug: opencontainers/umoci
178176
files: ${{ env.COVERAGE }}
179-
flags: integration,linux
180177
- name: upload coverage
181178
uses: actions/upload-artifact@v5
182179
with:

0 commit comments

Comments
 (0)