<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Github_secrets_rotation</id>
	<title>Github secrets rotation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Github_secrets_rotation"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Github_secrets_rotation&amp;action=history"/>
	<updated>2026-04-24T12:40:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Github_secrets_rotation&amp;diff=5394&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;``` #!/bin/bash  # Authenticate to Azure (if not already authenticated) az login  # Get the storage account access key storage_account_name=&quot;your_storage_account_name&quot; storage...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Github_secrets_rotation&amp;diff=5394&amp;oldid=prev"/>
		<updated>2024-12-14T13:32:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;``` #!/bin/bash  # Authenticate to Azure (if not already authenticated) az login  # Get the storage account access key storage_account_name=&amp;quot;your_storage_account_name&amp;quot; storage...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;```&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Authenticate to Azure (if not already authenticated)&lt;br /&gt;
az login&lt;br /&gt;
&lt;br /&gt;
# Get the storage account access key&lt;br /&gt;
storage_account_name=&amp;quot;your_storage_account_name&amp;quot;&lt;br /&gt;
storage_key=$(az storage account keys list --account-name $storage_account_name --query &amp;quot;[0].value&amp;quot; -o tsv)&lt;br /&gt;
&lt;br /&gt;
# Encode the key for safe usage in the GitHub Actions API&lt;br /&gt;
encoded_key=$(echo &amp;quot;$storage_key&amp;quot; | base64 -w 0)&lt;br /&gt;
&lt;br /&gt;
# Set the GitHub API URL and authorization header&lt;br /&gt;
github_api_url=&amp;quot;https://api.github.com/repos/your_org/your_repo/actions/secrets/STORAGE_ACCOUNT_KEY&amp;quot;&lt;br /&gt;
authorization_header=&amp;quot;Authorization: token your_personal_access_token&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Update the secret using curl&lt;br /&gt;
curl -X PUT -H &amp;quot;$authorization_header&amp;quot; -H &amp;quot;Accept: application/vnd.github+json&amp;quot; -d &amp;quot;{\&amp;quot;encrypted_value\&amp;quot;:\&amp;quot;$encoded_key\&amp;quot;}&amp;quot; &amp;quot;$github_api_url&amp;quot;&lt;br /&gt;
&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>