Skip to content

Commit 1bbaa07

Browse files
authored
[SVLS-8070] Add DD Octo STS trust policy for serverless-init-ci GHCR publishing (#993)
## Overview * Continue sending serverless-init images to [ghcr](https://github.com/DataDog/datadog-lambda-extension/pkgs/container/datadog-lambda-extension%2Fserverless-init) from a separate gitlab ci. * Part of [migrating serverless-init ci](https://datadoghq.atlassian.net/browse/SVLS-8070) ## Testing * will be manual: https://gitlab.ddbuild.io/DataDog/serverless-init-ci/-/jobs/1347137121
1 parent 782e038 commit 1bbaa07

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# DD Octo STS Trust Policy for serverless-init-ci GitLab pipeline
2+
#
3+
# This policy allows the serverless-init-ci GitLab pipeline to publish
4+
# serverless-init images to GitHub Container Registry (GHCR).
5+
#
6+
# Reference: https://datadoghq.atlassian.net/wiki/spaces/SECENG/pages/5138645099
7+
# Pipeline: https://gitlab.ddbuild.io/DataDog/serverless-init-ci
8+
9+
issuer: https://gitlab.ddbuild.io
10+
11+
# Subject pattern matches the serverless-init-ci repo on main branch
12+
subject_pattern: "project_path:DataDog/serverless-init-ci:ref_type:branch:ref:main"
13+
14+
# Restrict to protected main branch only (root of trust)
15+
claim_pattern:
16+
project_path: "DataDog/serverless-init-ci"
17+
ref: "main"
18+
ref_type: "branch"
19+
ref_path: "refs/heads/main"
20+
ref_protected: "true"
21+
pipeline_source: "push"
22+
ci_config_ref_uri: "gitlab.ddbuild.io/DataDog/serverless-init-ci//.gitlab-ci.yml@refs/heads/main"
23+
24+
# Minimal permissions: only write packages to GHCR
25+
permissions:
26+
packages: write
27+
metadata: read

0 commit comments

Comments
 (0)