Skip to content

Fix the GitLab template: entrypoint and stage#11

Merged
satsura merged 2 commits into
mainfrom
fix/gitlab-entrypoint
Jul 12, 2026
Merged

Fix the GitLab template: entrypoint and stage#11
satsura merged 2 commits into
mainfrom
fix/gitlab-entrypoint

Conversation

@satsura

@satsura satsura commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

The GitLab template had never been run against a real project. Migrating 54 repositories onto it surfaced two defects that broke every pipeline:

  • Entrypoint. A GitLab runner starts the job through a shell, so it invokes the image's entrypoint with the shell's flags — with ENTRYPOINT ["cerberus"] the job dies instantly with cerberus: Unknown option '-c'. Clearing it (entrypoint: [""]) is the documented fix.
  • Stage. The job sat in stage: test, which only exists if the project happens to define it. Repositories with their own stages: (build/deploy) failed at config parsing — the pipeline died before any job ran. .post exists in every pipeline regardless, which is exactly why the DefectDojo template it replaces lived there.

Verified on our GitLab: all 54 xpc/cg projects now produce a valid pipeline with a running scan job.

@satsura satsura changed the title Clear the image entrypoint in the GitLab template Fix the GitLab template: entrypoint and stage Jul 12, 2026
@satsura
satsura merged commit f9be41f into main Jul 12, 2026
3 checks passed
@satsura
satsura deleted the fix/gitlab-entrypoint branch July 12, 2026 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants