mirror of
				https://github.com/samply/bridgehead.git
				synced 2025-11-04 11:50:17 +01:00 
			
		
		
		
	
		
			
				
	
	
	
		
			1.6 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.6 KiB
		
	
	
	
	
	
	
	
How to Change Config Access Token
1. Generate a New Access Token
- Go to your Git configuration repository provider, it might be either git.verbis.dkfz.de or gitlab.bbmri-eric.eu.
 - Navigate to the configuration repository for your site.
 - Go to Settings → Access Tokens to check if your Access Token is valid or expired.
- If expired, create a new Access Token.
 
 - Configure the new Access Token with the following settings:
- Expiration date: One year from today, minus one day.
 - Role: Developer.
 - Scope: Only 
read_repository. 
 - Save the newly generated Access Token in a secure location.
 
2. Replace the Old Access Token
- 
Navigate to
/etc/bridgeheadin your system. - 
Run the following command to retrieve the current Git remote URL:
git remote get-url originExample output:
https://name40dkfz-heidelberg.de:<old_access_token>@git.verbis.dkfz.de/bbmri-bridgehead-configs/test.git - 
Replace
<old_access_token>with your new Access Token in the URL. - 
Set the updated URL using the following command:
git remote set-url origin https://name40dkfz-heidelberg.de:<new_access_token>@git.verbis.dkfz.de/bbmri-bridgehead-configs/test.git - 
Start the Bridgehead update service by running:
systemctl start bridgehead-update@<project> - 
View the output to ensure the update process is successful:
journalctl -u bridgehead-update@<project> -f