Skip to content

Commit 79adf74

Browse files
authored
Merge pull request #58 from postindustria-tech/secure-secrets
Securely pass secrets to reusable workflows
2 parents 7af6071 + 0b0d355 commit 79adf74

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/nightly-prs-to-main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ jobs:
2121
cache-assets: true
2222
secrets:
2323
token: ${{ secrets.ACCESS_TOKEN }}
24-
asset-keys: '{"DeviceDetection": "${{ secrets.DEVICE_DETECTION_KEY }}", "TestResourceKey": "${{ secrets.SUPER_RESOURCE_KEY}}", "DeviceDetectionUrl": "${{ secrets.DEVICE_DETECTION_URL }}", "CsvUrl": "${{ secrets.CSV_URL }}"}'
24+
DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }}
25+
TestResourceKey: ${{ secrets.SUPER_RESOURCE_KEY}}
26+
DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }}
27+
CsvUrl: ${{ secrets.CSV_URL }}

.github/workflows/nightly-publish-main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@ jobs:
2222
cache-assets: true
2323
secrets:
2424
token: ${{ secrets.ACCESS_TOKEN }}
25-
asset-keys: '{"DeviceDetection": "${{ secrets.DEVICE_DETECTION_KEY }}", "TestResourceKey": "${{ secrets.SUPER_RESOURCE_KEY}}", "DeviceDetectionUrl": "${{ secrets.DEVICE_DETECTION_URL }}", "CsvUrl": "${{ secrets.CSV_URL }}", "PypiToken": "${{ secrets.PYPI_TOKEN }}", "TestPypiToken": "${{ secrets.TEST_PYPI_TOKEN }}"}'
25+
DeviceDetection: ${{ secrets.DEVICE_DETECTION_KEY }}
26+
TestResourceKey: ${{ secrets.SUPER_RESOURCE_KEY}}
27+
DeviceDetectionUrl: ${{ secrets.DEVICE_DETECTION_URL }}
28+
CsvUrl: ${{ secrets.CSV_URL }}
29+
PypiToken: ${{ secrets.PYPI_TOKEN }}
30+
TestPypiToken: ${{ secrets.TEST_PYPI_TOKEN }}
2631

0 commit comments

Comments
 (0)