Skip to content

Commit af171b7

Browse files
authored
Allow workflow to work cross-org
The secrets:inherit setting doesn't work across orgs, so clarius was having issues with that.
1 parent 2fff747 commit af171b7

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/dotnet-file-core.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
name: dotnet-file-core
33
on:
44
workflow_call:
5+
secrets:
6+
BOT_NAME:
7+
required: false
8+
BOT_EMAIL:
9+
required: false
10+
GH_TOKEN:
11+
required: false
512

613
env:
714
DOTNET_NOLOGO: true

.github/workflows/dotnet-file.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ env:
1313
jobs:
1414
run:
1515
uses: devlooped/oss/.github/workflows/dotnet-file-core.yml@main
16-
secrets: inherit
16+
secrets:
17+
BOT_NAME: ${{ secrets.BOT_NAME }}
18+
BOT_EMAIL: ${{ secrets.BOT_EMAIL }}
19+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)