Skip to content

Commit e8d8d45

Browse files
committed
break-pacman-upload-lease: avoid writing the Azure token to disk
We can simply pass it in as an environment variable instead. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent bc07061 commit e8d8d45

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/break-pacman-upload-lease.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,11 @@ jobs:
1212
uses: actions/checkout@v4
1313
with:
1414
repository: git-for-windows/build-extra
15-
16-
- name: Prepare home directory
17-
if: env.AZURE_BLOBS_TOKEN != ''
18-
env:
19-
AZURE_BLOBS_TOKEN: ${{secrets.AZURE_BLOBS_TOKEN}}
20-
shell: bash
21-
run: |
22-
echo "::add-mask::$(echo "$AZURE_BLOBS_TOKEN" | base64 -w 0)" &&
23-
echo "$AZURE_BLOBS_TOKEN" >"$HOME"/.azure-blobs-token
24-
2515
- name: Break the lease
26-
if: env.AZURE_BLOBS_TOKEN != ''
16+
if: env.azure_blobs_token != ''
2717
shell: bash
2818
env:
29-
AZURE_BLOBS_TOKEN: ${{secrets.AZURE_BLOBS_TOKEN}}
19+
azure_blobs_token: ${{secrets.AZURE_BLOBS_TOKEN}}
3020
run: |
21+
echo "::add-mask::$(echo "$AZURE_BLOBS_TOKEN" | base64 -w 0)" &&
3122
./pacman-helper.sh break_lock

0 commit comments

Comments
 (0)