Skip to content

Commit c8ae48d

Browse files
committed
avoid GH macros in shell code 3
1 parent 125a374 commit c8ae48d

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.github/workflows/build_latest_release_multi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ jobs:
8282
env:
8383
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
8484
- name: Write public key to disk
85-
run: echo "${{ secrets.COSIGN_PUBLIC_KEY }}" > cosign.pub
85+
env:
86+
COSIGN_PUBLIC_KEY: '${{ secrets.COSIGN_PUBLIC_KEY }}'
87+
run: echo "${COSIGN_PUBLIC_KEY}" > cosign.pub
8688
- name: Verify image with public key
8789
run: |
8890
cosign verify --key cosign.pub ghcr.io/curl/curl-container/curl-multi:$REL

.github/workflows/build_master.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ jobs:
7878
env:
7979
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
8080
- name: Write public key to disk
81-
run: echo "${{ secrets.COSIGN_PUBLIC_KEY }}" > cosign.pub
81+
env:
82+
COSIGN_PUBLIC_KEY: '${{ secrets.COSIGN_PUBLIC_KEY }}'
83+
run: echo "${COSIGN_PUBLIC_KEY}" > cosign.pub
8284
- name: Verify image with public key
8385
run: |
8486
cosign verify --key cosign.pub ghcr.io/curl/curl-container/curl-dev:master

.github/workflows/build_master_dev.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ jobs:
7373
env:
7474
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
7575
- name: Write public key to disk
76-
run: echo "${{ secrets.COSIGN_PUBLIC_KEY }}" > cosign.pub
76+
env:
77+
COSIGN_PUBLIC_KEY: '${{ secrets.COSIGN_PUBLIC_KEY }}'
78+
run: echo "${COSIGN_PUBLIC_KEY}" > cosign.pub
7779
- name: Verify image with public key
7880
run: |
7981
cosign verify --key cosign.pub ghcr.io/curl/curl-container/curl-dev-debian:master

.github/workflows/build_master_multi.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ jobs:
7676
env:
7777
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
7878
- name: Write public key to disk
79-
run: echo "${{ secrets.COSIGN_PUBLIC_KEY }}" > cosign.pub
79+
env:
80+
COSIGN_PUBLIC_KEY: '${{ secrets.COSIGN_PUBLIC_KEY }}'
81+
run: echo "${COSIGN_PUBLIC_KEY}" > cosign.pub
8082
- name: Verify image with public key
8183
run: |
8284
cosign verify --key cosign.pub ghcr.io/curl/curl-container/curl-multi:master

0 commit comments

Comments
 (0)