Skip to content

Commit f5a0392

Browse files
oiokiclaude
andauthored
ci: Replace secrets: inherit with explicit CODECOV_TOKEN pass (#3047)
The test job inherited all repository secrets to call gem_test.yml, which only reads secrets.CODECOV_TOKEN but never declared it under workflow_call.secrets. Declare it explicitly and pass only that secret by name instead of exposing every repository secret to the called workflow. Refs VULN-2296 Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent afa858d commit f5a0392

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/gem_test.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ on:
1717
description: Space-separated apt packages to install before testing.
1818
type: string
1919
default: ""
20+
secrets:
21+
CODECOV_TOKEN:
22+
required: false
2023

2124
jobs:
2225
matrix:

‎.github/workflows/tests.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ jobs:
4040
with:
4141
gem: ${{ matrix.gem }}
4242
apt: ${{ matrix.apt || '' }}
43-
secrets: inherit
43+
secrets:
44+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4445

4546
codecov:
4647
name: CodeCov

0 commit comments

Comments
 (0)