Skip to content

Commit 654078a

Browse files
committed
fix(harness): use existing fme-github-netrc-token for git_tag + github_release
GITHUB_WRITE_TOKEN did not exist in Harness_Split. Switch both release steps to fme-github-netrc-token — the only secret proven to authenticate against splitio/splitd (post_quality_gate posts commit statuses with it). Also set git config identity so the tag push doesn't fail. Scope (contents+releases write) still to be confirmed on the controlled release test. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> AI-Session-Id: 0a00eb6f-0023-474a-9956-28484d52c4f0 AI-Tool: claude-code AI-Model: unknown
1 parent d4b8753 commit 654078a

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.harness/orgs/PROD/projects/Harness_Split/pipelines/splitd_ci.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
# `make` MAY work — but VERIFY `make test`/`make binaries_release` resolve deps
3838
# in Harness Cloud; if not, add the same GOPROXY/GOPRIVATE env as the reference.
3939
#
40-
# Secret names to confirm exist in Harness_Split (real names from reference):
41-
# sonarqube-token, fme-github-netrc-token
42-
# + a token for tag/release (GITHUB_WRITE_TOKEN — create with least privilege)
40+
# Secret names (verified to exist in Harness_Split):
41+
# sonarqube-token (sonar), fme-github-netrc-token (github status + tag/release).
42+
# fme-github-netrc-token is proven to auth against splitio/splitd (used by
43+
# post_quality_gate); VERIFY it has contents+releases write on the controlled test.
4344
# =============================================================================
4445
pipeline:
4546
name: splitd_ci
@@ -237,14 +238,19 @@ pipeline:
237238
name: Create git tag
238239
type: Run
239240
# push-to-main only: create + push v<VERSION>. Token must not be echoed.
241+
# Uses fme-github-netrc-token — proven to auth against splitio/splitd
242+
# (post_quality_gate posts commit statuses with it). VERIFY it has
243+
# contents write (tag push) on the controlled release test.
240244
spec:
241245
connectorRef: dockerhub
242246
image: alpine/git
243247
shell: Sh
244248
envVariables:
245-
GITHUB_TOKEN: <+secrets.getValue("GITHUB_WRITE_TOKEN")>
249+
GITHUB_TOKEN: <+secrets.getValue("fme-github-netrc-token")>
246250
command: |
247251
VERSION="<+steps.set_version.output.outputVariables.VERSION>"
252+
git config user.email "fme-ci@split.io"
253+
git config user.name "splitd CI"
248254
git tag "v${VERSION}"
249255
git push "https://x-access-token:${GITHUB_TOKEN}@github.com/splitio/splitd.git" "v${VERSION}"
250256
when:
@@ -260,7 +266,7 @@ pipeline:
260266
connectorRef: dockerhub
261267
image: plugins/github-release
262268
settings:
263-
api_key: <+secrets.getValue("GITHUB_WRITE_TOKEN")>
269+
api_key: <+secrets.getValue("fme-github-netrc-token")>
264270
title: splitd-<+steps.set_version.output.outputVariables.VERSION>
265271
tag: v<+steps.set_version.output.outputVariables.VERSION>
266272
files: |

0 commit comments

Comments
 (0)