Skip to content

Commit 6c3972f

Browse files
authored
code-sign: default the S3 key-prefix to the calling repo (#1799)
1 parent 861d3aa commit 6c3972f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/actions/code-sign/action.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ inputs:
2525
required: false
2626
default: "code-signer"
2727
key-prefix:
28-
description: "S3 key prefix the caller is authorized to write under"
28+
description: "S3 key prefix to write under; defaults to code-signing/<owner>/<repo> of the calling repo"
2929
required: false
30-
default: "code-signing/slackhq/nebula"
30+
default: ""
3131

3232
runs:
3333
using: composite
@@ -57,6 +57,9 @@ runs:
5757
KEY_PREFIX: ${{ inputs.key-prefix }}
5858
run: |
5959
set -eu
60+
# Default the prefix to this repo so the S3 key attributes the sign correctly.
61+
# nebula-nightly runs this same action but writes under its own repo's prefix.
62+
KEY_PREFIX="${KEY_PREFIX:-code-signing/$GITHUB_REPOSITORY}"
6063
RUN="${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
6164
6265
find "$SIGN_PATH" -name '*.exe' -print | while read -r path

0 commit comments

Comments
 (0)