fetch gitlab workflow and add to vscode-fork as extension
Issues - gitlab-org/gitlab#463502 (closed)
What does this MR do and why?
We would need to do a few things with this MR
- download required gitlab-workflow extension via their package registry
- prepare it for docker image build
- update the script to add it into the extensions folder when the script runs
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
For below screenshots, i use the latest image built from tools-injector repo, and also pass in the 2 additional envs as required GITLAB_WORKFLOW_INSTANCE_URL
and GITLAB_WORKFLOW_TOKEN_FILE
.
And this means the gitlab workflow extension and gitlab Duo Chat both working fine.
This below screenshot proves the Duo Chat Code Suggestion working fine. Hoewver, there is a bit trick for setup. The image is still the same as the above, but this time, i modified the 2 additional envs, GITLAB_WORKFLOW_INSTANCE_URL
to https://gitlab.com
, and GITLAB_WORKFLOW_TOKEN
with my own PAT generated.
The reason is, it seems with envs passed in, the command + shift + p
and add account for workflow
does not take effect at all. It seems the code will always read from ENV even I add/delete multiple times.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.