Skip to content

feat: read PAT from file

Safwan Ahmed requested to merge saf-allow-read-PAT-from-file into main

Description

This MR allows the for the GITLAB_WORKFLOW_TOKEN env variable to be set when a GITLAB_WORKFLOW_TOKEN_FILE that is readable is provided and GITLAB_WORKFLOW_TOKEN variable is absent . When the file can be read, GITLAB_WORKFLOW_TOKEN is set as first line of text that exists in GITLAB_WORKFLOW_TOKEN_FILE. Any error in the process of reading the file causes the operation to be aborted and errors if present to be logged.

Related Issues

Resolves: [VS Code] Read gitlab token from a file to conf... (#1250 - closed)

How has this been tested?

  • Unit tests
  • Manual tests

Screenshots (if appropriate)

What CHANGELOG entry will this MR create?

  • fix: Bug fix fixes - a user-facing issue in production - included in changelog
  • feature: New feature - a user-facing change which adds functionality - included in changelog
  • BREAKING CHANGE: (fix or feature that would cause existing functionality to change) - should bump major version, mentioned in the changelog
  • None - other non-user-facing changes
Edited by Safwan Ahmed

Merge request reports