mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-03 06:24:30 +01:00
switch roles on condition for windows (#2975)
This commit is contained in:
4
.github/workflows/bundle-desktop-windows.yml
vendored
4
.github/workflows/bundle-desktop-windows.yml
vendored
@@ -26,6 +26,8 @@ on:
|
||||
required: false
|
||||
WINDOW_SIGNING_ROLE:
|
||||
required: false
|
||||
WINDOW_SIGNING_ROLE_TAG:
|
||||
required: false
|
||||
|
||||
# Permissions required for OIDC authentication with AWS
|
||||
permissions:
|
||||
@@ -51,7 +53,7 @@ jobs:
|
||||
if: inputs.signing && inputs.signing == true
|
||||
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # ratchet:aws-actions/configure-aws-credentials@v4
|
||||
with:
|
||||
role-to-assume: ${{ secrets.WINDOW_SIGNING_ROLE }}
|
||||
role-to-assume: ${{ startsWith(inputs.ref, 'refs/tags/') && secrets.WINDOW_SIGNING_ROLE_TAG || secrets.WINDOW_SIGNING_ROLE }}
|
||||
aws-region: us-west-2
|
||||
|
||||
# 2) Set up Node.js
|
||||
|
||||
1
.github/workflows/canary.yml
vendored
1
.github/workflows/canary.yml
vendored
@@ -96,6 +96,7 @@ jobs:
|
||||
secrets:
|
||||
WINDOWS_CODESIGN_CERTIFICATE: ${{ secrets.WINDOWS_CODESIGN_CERTIFICATE }}
|
||||
WINDOW_SIGNING_ROLE: ${{ secrets.WINDOW_SIGNING_ROLE }}
|
||||
WINDOW_SIGNING_ROLE_TAG: ${{ secrets.WINDOW_SIGNING_ROLE_TAG }}
|
||||
|
||||
# ------------------------------------
|
||||
# 7) Create/Update GitHub Release
|
||||
|
||||
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -83,6 +83,7 @@ jobs:
|
||||
secrets:
|
||||
WINDOWS_CODESIGN_CERTIFICATE: ${{ secrets.WINDOWS_CODESIGN_CERTIFICATE }}
|
||||
WINDOW_SIGNING_ROLE: ${{ secrets.WINDOW_SIGNING_ROLE }}
|
||||
WINDOW_SIGNING_ROLE_TAG: ${{ secrets.WINDOW_SIGNING_ROLE_TAG }}
|
||||
|
||||
# ------------------------------------
|
||||
# 7) Create/Update GitHub Release
|
||||
|
||||
Reference in New Issue
Block a user