Pass privileges to fix_pipeline flow

Summary

When fixing a pipeline with Duo (setup instructions), the flow fails:

Automate___GitLab_org___duo-workflow___Test_Project_Playground___Roman_-_Fix_Pipeline_Examples___AI_Gateway___GitLab

Here's the output for Workflow Service after the call from Rails:

(Pdb) workflow_config
{'agent_privileges_names': ['read_write_files', 'read_only_gitlab'], 'pre_approved_agent_privileges_names': ['read_write_files', 'read_only_gitlab'], 'workflow_status': 'created', 'mcp_enabled': False, 'allow_agent_to_request_user': True, 'first_checkpoint': None, 'gitlab_host': 'gdk.test:3000'}

Proposed Solution

We need to pass along "agent_privileges": [1,2,3,5]

Validation

After running the flow, the pipeline should succeed, and a new MR should be created in the project.

Edited by Roman Eisner