diff options
author | kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com> | 2024-01-31 08:05:57 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-31 15:05:57 +0100 |
commit | 1f11b3844afacd4e190ffe4db7d3241bb298c451 (patch) | |
tree | 30ec1dbe701f66cf68ac7a8267a0810d71f526fc /share | |
parent | e129a6f47a86f4180d9209b14c24e593fd50dee1 (diff) | |
download | spack-1f11b3844afacd4e190ffe4db7d3241bb298c451.tar.gz spack-1f11b3844afacd4e190ffe4db7d3241bb298c451.tar.bz2 spack-1f11b3844afacd4e190ffe4db7d3241bb298c451.tar.xz spack-1f11b3844afacd4e190ffe4db7d3241bb298c451.zip |
CI: Add OIDC capability for deprecated CI (#42371)
This "breaks" the deprecated schema by allowing unknown attributes
to the attributes section of the job types. The breaking change here is
that deprecated stacks will no longer ignore attributes that are unknown
but rather assume the new CI schema behavior of injecting them into the
generated CI configuration. This change is required to secure
authentication in Spack CI.
Diffstat (limited to 'share')
-rw-r--r-- | share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml b/share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml index 17d5447c4d..017c3d9c70 100644 --- a/share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml +++ b/share/spack/gitlab/cloud_pipelines/stacks/deprecated/spack.yaml @@ -62,6 +62,9 @@ spack: - match: - '@:' runner-attributes: + id_tokens: + GITLAB_OIDC_TOKEN: + aud: "${OIDC_TOKEN_AUDIENCE}" tags: [spack, public, small, x86_64] variables: CI_JOB_SIZE: small @@ -69,6 +72,9 @@ spack: KUBERNETES_CPU_REQUEST: 500m KUBERNETES_MEMORY_REQUEST: 500M signing-job-attributes: + id_tokens: + GITLAB_OIDC_TOKEN: + aud: "${OIDC_TOKEN_AUDIENCE}" image: {name: 'ghcr.io/spack/notary:latest', entrypoint: ['']} tags: [aws] script: @@ -80,6 +86,9 @@ spack: --recursive --exclude "*" --include "*.pub" service-job-attributes: + id_tokens: + GITLAB_OIDC_TOKEN: + aud: "${OIDC_TOKEN_AUDIENCE}" image: ghcr.io/spack/tutorial-ubuntu-18.04:v2021-11-02 before_script: - . "./share/spack/setup-env.sh" |