Skip to content

Commit b4f3264

Browse files
committed
Fix internal release workflow metadata and secret scope
1 parent 002b174 commit b4f3264

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/release-cloud-internal.yml renamed to .github/workflows/releaseCloudInternal.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ permissions:
66

77
on:
88
workflow_dispatch:
9-
inputs:
10-
git_ref:
11-
description: Git ref to build for internal.sourcebot.dev
12-
required: false
13-
default: main
14-
type: string
159

1610
concurrency:
1711
group: release-cloud-internal
@@ -22,9 +16,10 @@ jobs:
2216
uses: ./.github/workflows/_build-cloud.yml
2317
with:
2418
environment: internal
25-
git_ref: ${{ inputs.git_ref || 'main' }}
19+
# Pin the checkout and image tags to the same dispatch commit so metadata
20+
# can never identify image contents as a different revision.
21+
git_ref: ${{ github.sha }}
2622
require_sentry: false
2723
docker_tags: |
2824
type=raw,value=main
29-
type=sha,format=long
30-
secrets: inherit
25+
type=raw,value=sha-${{ github.sha }}

0 commit comments

Comments
 (0)