mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-05 02:43:32 +00:00
fix(ci-setup): drop double-hash in the ACA script auth comment
authComment lines already begin with `#`, but the injection site prefixed another `# `, producing `# # Auth: …` in the generated bash script. Inject the comment block without the extra prefix so each line is single-hashed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
642f4419d3
commit
52a73622c7
2 changed files with 7 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ function buildAcaDeployScript(opts: CiSetupOptions): string {
|
|||
# Deploy GitNexus as an Azure Container App.
|
||||
# Requires: az CLI, logged in with Contributor on the target resource group.
|
||||
#
|
||||
# ${authComment}
|
||||
${authComment}
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
|
|
|
|||
|
|
@ -160,6 +160,12 @@ describe('ACA deploy script + connection guidance (U6)', () => {
|
|||
expect(md).toContain('ingress internal');
|
||||
expect(md).not.toContain(':4748/api/mcp');
|
||||
});
|
||||
|
||||
it('ACA auth comment is not double-hashed (U10)', () => {
|
||||
expect(aca({ auth: 'token' })).not.toContain('# # ');
|
||||
expect(aca({ auth: 'none' })).not.toContain('# # ');
|
||||
expect(aca({ auth: 'token' })).toContain('# Auth: this deploys with --ingress internal');
|
||||
});
|
||||
});
|
||||
|
||||
describe('version pinning (U9)', () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue