Skip to content

Commit e920884

Browse files
committed
Fix issue with secrets.GITHUB_TOKEN
1 parent 14f6e91 commit e920884

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/actions/odbc-windows/action.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
# under the License.
1717

1818
name: ODBC Windows Reusable
19-
19+
inputs:
20+
github-token:
21+
description: 'GITHUB_TOKEN for vcpkg caching'
22+
required: true
2023
runs:
2124
using: "composite"
2225
steps:
@@ -75,9 +78,9 @@ runs:
7578
-storepasswordincleartext \
7679
-name "GitHub" \
7780
-username "$GITHUB_REPOSITORY_OWNER" \
78-
-password "${{ secrets.GITHUB_TOKEN }}"
81+
-password "${{ inputs.github-token }}"
7982
$(vcpkg fetch nuget | tail -n 1) \
80-
setapikey "${{ secrets.GITHUB_TOKEN }}" \
83+
setapikey "${{ inputs.github-token }}" \
8184
-source "https://nuget.pkg.github.com/$GITHUB_REPOSITORY_OWNER/index.json"
8285
- name: Build
8386
shell: cmd

.github/workflows/cpp_extra.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,8 @@ jobs:
574574
submodules: recursive
575575
- name: Build ODBC Windows
576576
uses: ./.github/actions/odbc-windows
577+
with:
578+
github-token: ${{ secrets.GITHUB_TOKEN }}
577579
- name: Test
578580
shell: cmd
579581
run: |
@@ -655,6 +657,8 @@ jobs:
655657
submodules: recursive
656658
- name: Build ODBC Windows
657659
uses: ./.github/actions/odbc-windows
660+
with:
661+
github-token: ${{ secrets.GITHUB_TOKEN }}
658662
- name: Name Unsigned ODBC DLL
659663
run: |
660664
Rename-Item `
@@ -725,6 +729,8 @@ jobs:
725729
--clobber
726730
- name: Build ODBC Windows
727731
uses: ./.github/actions/odbc-windows
732+
with:
733+
github-token: ${{ secrets.GITHUB_TOKEN }}
728734
- name: Replace signed DLL with unsigned DLL
729735
run: |
730736
Move-Item `

0 commit comments

Comments
 (0)