<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fci-secrets</id>
	<title>Unity.Multiplayer/articles/ci-secrets - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mindattic.com/wiki/docs/index.php?action=history&amp;feed=atom&amp;title=Unity.Multiplayer%2Farticles%2Fci-secrets"/>
	<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/ci-secrets&amp;action=history"/>
	<updated>2026-12-05T12:54:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/ci-secrets&amp;diff=908&amp;oldid=prev</id>
		<title>Docs Sync: md2wiki: sync from MindAttic.Docs</title>
		<link rel="alternate" type="text/html" href="https://mindattic.com/wiki/docs/index.php?title=Unity.Multiplayer/articles/ci-secrets&amp;diff=908&amp;oldid=prev"/>
		<updated>2026-11-29T20:36:34Z</updated>

		<summary type="html">&lt;p&gt;md2wiki: sync from MindAttic.Docs&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= CI secrets =&lt;br /&gt;
&lt;br /&gt;
The Unity jobs in CI and the nightly smoke test run Unity through GameCI, which needs a Unity license on the GitHub runner. Those secrets live in GitHub, not in any file in the repo, and each repo that runs Unity workflows needs its own copy. &amp;lt;code&amp;gt;mindattic&amp;lt;/code&amp;gt; is a personal GitHub account, so there are no organization-wide secrets to share.&lt;br /&gt;
&lt;br /&gt;
== The one command ==&lt;br /&gt;
&lt;br /&gt;
From a PC where Unity Hub is signed in and has an activated license:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code lang-powershell&amp;quot;&amp;gt;powershell -File tools\set-ci-secrets.ps1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It asks for your Unity account email and password once, then sets every secret below on &amp;lt;code&amp;gt;mindattic/Unity.Multiplayer&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;mindattic/Unity.Cursory&amp;lt;/code&amp;gt;, and lists what each repo now has. For a new game, name its repo:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code lang-powershell&amp;quot;&amp;gt;powershell -File tools\set-ci-secrets.ps1 -Repos mindattic/MyNewGame&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;-Repos&amp;lt;/code&amp;gt; takes several (&amp;lt;code&amp;gt;-Repos mindattic/GameA,mindattic/GameB&amp;lt;/code&amp;gt;), and &amp;lt;code&amp;gt;-LicenseFile&amp;lt;/code&amp;gt; points at a license file other than the default &amp;lt;code&amp;gt;C:\ProgramData\Unity\Unity_lic.ulf&amp;lt;/code&amp;gt;. Values go to &amp;lt;code&amp;gt;gh&amp;lt;/code&amp;gt; on standard input, never on the command line. It needs the [https://cli.github.com/ GitHub CLI] logged in (&amp;lt;code&amp;gt;gh auth login&amp;lt;/code&amp;gt;) with the &amp;lt;code&amp;gt;repo&amp;lt;/code&amp;gt; scope.&lt;br /&gt;
&lt;br /&gt;
Run it from inside Claude Code as &amp;lt;code&amp;gt;! powershell -File D:/Projects/MindAttic/Unity.Multiplayer/tools/set-ci-secrets.ps1&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;!&amp;lt;/code&amp;gt; shell is bash, so keep the forward slashes.&lt;br /&gt;
&lt;br /&gt;
== What it sets ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Secret&lt;br /&gt;
! Where&lt;br /&gt;
! Value&lt;br /&gt;
! Used by&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;UNITY_LICENSE&amp;lt;/code&amp;gt;&lt;br /&gt;
| every repo given&lt;br /&gt;
| the contents of &amp;lt;code&amp;gt;C:\ProgramData\Unity\Unity_lic.ulf&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;lt;code&amp;gt;ci.yml&amp;lt;/code&amp;gt; Unity jobs, &amp;lt;code&amp;gt;nightly-smoke.yml&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;game-smoke.yml&amp;lt;/code&amp;gt;, a game&amp;#039;s &amp;lt;code&amp;gt;nightly.yml&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;UNITY_EMAIL&amp;lt;/code&amp;gt;&lt;br /&gt;
| every repo given&lt;br /&gt;
| your Unity account email&lt;br /&gt;
| &amp;lt;code&amp;gt;game-smoke.yml&amp;lt;/code&amp;gt; (GameCI needs it with a Personal license)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;UNITY_PASSWORD&amp;lt;/code&amp;gt;&lt;br /&gt;
| every repo given&lt;br /&gt;
| your Unity account password&lt;br /&gt;
| &amp;lt;code&amp;gt;game-smoke.yml&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;RENDEZVOUS_SMOKE_SECRET&amp;lt;/code&amp;gt;&lt;br /&gt;
| Unity.Multiplayer only, if missing&lt;br /&gt;
| 48 random hex characters&lt;br /&gt;
| &amp;lt;code&amp;gt;nightly-smoke.yml&amp;lt;/code&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Not set, because they&amp;#039;re not needed today:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;UNITY_SERIAL&amp;lt;/code&amp;gt;: only for a Unity Pro license.&lt;br /&gt;
* &amp;lt;code&amp;gt;MINDATTIC_REPOS_TOKEN&amp;lt;/code&amp;gt;: a token with read access to the sibling repos. &amp;lt;code&amp;gt;game-smoke.yml&amp;lt;/code&amp;gt; and Cursory&amp;#039;s nightly need it only if Unity.Multiplayer, Unity.Shared, MindAttic.Components or MindAttic.Media.Capture is private; all are public.&lt;br /&gt;
&lt;br /&gt;
== Doing it by hand ==&lt;br /&gt;
&lt;br /&gt;
Each line below is one secret on one repo; the last two prompt for the value.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;md-code lang-bash&amp;quot;&amp;gt;gh secret set UNITY_LICENSE -R mindattic/MyNewGame &amp;amp;lt; C:/ProgramData/Unity/Unity_lic.ulf&lt;br /&gt;
gh secret set UNITY_EMAIL -R mindattic/MyNewGame&lt;br /&gt;
gh secret set UNITY_PASSWORD -R mindattic/MyNewGame&lt;br /&gt;
gh secret list -R mindattic/MyNewGame&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or on GitHub: the repo&amp;#039;s &amp;lt;strong&amp;gt;Settings → Secrets and variables → Actions → New repository secret&amp;lt;/strong&amp;gt;, and paste the whole &amp;lt;code&amp;gt;.ulf&amp;lt;/code&amp;gt; file as the value of &amp;lt;code&amp;gt;UNITY_LICENSE&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== When it goes wrong ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;No Unity license at C:\ProgramData\Unity\Unity_lic.ulf&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;: open Unity Hub, sign in and activate a license, then run the script again.&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;failed to fetch public key: HTTP 404&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;--org&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;: &amp;lt;code&amp;gt;mindattic&amp;lt;/code&amp;gt; is a user account, not an organization; set the secrets per repo (the script already does).&lt;br /&gt;
* &amp;lt;strong&amp;gt;&amp;lt;code&amp;gt;No such file or directory&amp;lt;/code&amp;gt; for &amp;lt;code&amp;gt;C:ProgramDataUnity...&amp;lt;/code&amp;gt;&amp;lt;/strong&amp;gt;: the path went through bash, which dropped the backslashes. Use forward slashes.&lt;br /&gt;
* &amp;lt;strong&amp;gt;The Unity job still fails on activation&amp;lt;/strong&amp;gt;: the license on this PC was reissued after you set the secret (Unity Hub refreshes it); run the script again.&lt;br /&gt;
&lt;br /&gt;
See [[Unity.Multiplayer/articles/testing|Testing]] for what each CI job runs, and [[Unity.Multiplayer/articles/bots#The nightly workflow|Bots]] for the nightly smoke test.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-crumb&amp;quot;&amp;gt;Part of [[Unity.Multiplayer]].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;md2wiki-source&amp;quot;&amp;gt;From [https://github.com/mindattic/Unity.Multiplayer/blob/main/docs/articles/ci-secrets.md Unity.Multiplayer/docs/articles/ci-secrets.md] via MindAttic.Docs; synced automatically, so edit the repo, not this page.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Unity.Multiplayer]]&lt;/div&gt;</summary>
		<author><name>Docs Sync</name></author>
	</entry>
</feed>