Skip to content

Commit ef652b4

Browse files
Publish docker image only in "production" environment. (#5762)
The point of this environment is that it now hosts the github secrets that are required to push to github. That environment is configured to require a CR from a short list of 6 major contributors. The goal here is to prevent a malicious contributor with write access to access the docker api token secrets. Co-authored-by: fulmicoton <[email protected]>
1 parent 3a070c8 commit ef652b4

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/publish_cross_images.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
build-cross-images:
1313
name: Publish cross images
1414
runs-on: ubuntu-latest
15+
environment:
16+
name: production
1517
steps:
1618
- name: Check out the repo
1719
uses: actions/checkout@v4

.github/workflows/publish_docker_images.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
platform: linux/arm64
2828
platform_suffix: arm64
2929
runs-on: ${{ matrix.os }}
30+
environment:
31+
name: production
3032
steps:
3133
- name: Checkout
3234
uses: actions/checkout@v4

0 commit comments

Comments
 (0)