Skip to content

[fullrelease] from a drone.ci fails due to missing git auth #452

Description

@laur89

I'm trying to do a fullrelease from drone CI node with config like:

---
kind: pipeline
type: docker
name: default

steps:
# note zest does everything, including tagging!
- name: version-tag-changelog
  image: python:3-bookworm
  commands:
  - git config --global user.email "zest.releaser@example.com"
  - git config --global user.name "Zest Releaser"
  - pip install zest.releaser
  - fullrelease --no-input
  when:
    branch:
    - master

This will result in changelog change, and push to git fails with:

INFO: OK to commit this
INFO: Auto-responding 'yes'.
INFO: [master 734674d] Back to development: 0.6.5

 2 files changed, 7 insertions(+), 1 deletion(-)


INFO: OK to push commits to the server?
INFO: Auto-responding 'yes'.
ERROR: exit code 128.

fatal: could not read Username for 'https://github.com': terminal prompts disabled

as expected.

Is there a way to provide git auth in a declarative way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions