workflows: Run release workflow in release environment

This partitions secrets and limits their potential exposure/leakage.

This environment can be created with github-upload-action-secrets in [1].

[1] https://github.com/cockpit-project/bots/pull/2164
This commit is contained in:
Martin Pitt 2021-07-06 07:55:40 +02:00 committed by Allison Karlitskaya
parent cfaa74f761
commit 4d9dd8c11e

View file

@ -7,6 +7,7 @@ on:
jobs: jobs:
cockpituous: cockpituous:
runs-on: ubuntu-latest runs-on: ubuntu-latest
environment: release
container: container:
image: ghcr.io/cockpit-project/release image: ghcr.io/cockpit-project/release
steps: steps: