Skip to content

Gitlab CI_JOB_TOKEN #141

Closed
Closed
@cliedeman

Description

@cliedeman

Get go-semantic-release to work with a gitlab ci job token.

The token has much less permissions than a PAT but only has access to limited endpoints.
The motivation is ease of maintance. The ci tokens are automatically created and deleted after builds so are ideal for publishing

The variables we currently source from the project api are available during the build

https://docs.gitlab.com/ee/ci/variables/predefined_variables.html

  • CI_DEFAULT_BRANCH
  • CI_PROJECT_VISIBILITY

Its not clear to me if the token can even access the commits

Will investigate...

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