Update token from pipeline trigger to store on create instead of read
-
Please check this box if this contribution uses AI-generated content as outlined in the GitLab DCO & CLA
Closes #1410 (closed)
This MR updates the token
from the gitlab_pipeline_trigger
to store during the create
operation instead of during the read
operation. This is due to an issue where the token that comes back on the read
operation is truncated when retrieved by a different user than the user who created the token, potentially resulting in a corrupted state value when TF is run with different users.
It also updates the project
attribute to ForceNew when updated, since there is no ability to update the Project attribute via the API.
Edited by 🤖 GitLab Bot 🤖