You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/composer-authentication.md
+6-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
Running Composer commands against Private Packagist always requires authentication.
5
5
6
6
## Different types of tokens
7
-
Three different types of authentication tokens can be used to access Private Packagist.
7
+
Four different types of authentication tokens can be used to access Private Packagist.
8
8
9
9
### User access token
10
10
Every user has their own token that they can access either on the profile page or on the overview page of their organizations.
@@ -24,6 +24,10 @@ Read-only tokens are only meant to be used with an existing composer.lock file.
24
24
If you need to run `composer update`, then either use a token with update access or your personal access token.
25
25
Please note that you will be charged for authentication tokens with update access as if they were user accounts.
26
26
27
+
### Conductor authentication tokens
28
+
Conductor creates short-lived authentication tokens with update access for each CI run that gets scheduled. Similar to
29
+
organization authentication tokens, access can be restricted to any set of packages which any of the organization's teams has access to.
30
+
27
31
### Private Packagist vendor customer tokens
28
32
Every Private Packagist for Vendors customer receives their own authentication token.
29
33
The token can only be used to install packages from the matching customer URL.
@@ -37,6 +41,7 @@ There are currently three different prefixes:
37
41
*`packagist_ort_`: Organization tokens with read-only access
38
42
*`packagist_out_`: Organization tokens with update access
39
43
*`packagist_uut_`: User tokens with update access
44
+
*`packagist_cut_`: Conductor tokens with update access
40
45
41
46
This format doesn't apply to authentication tokens generated for Private Packagist for Vendors customers and older tokens that haven't been regenerated recently.
42
47
These tokens only consist of the 60 hexadecimal character random part.
1. Adjust the PHP Version used in the "Install PHP" step
34
34
2. Commit and push the workflow to your main branch of your package repository
35
35
36
-
Create a secret `CONDUCTOR_COMPOSER_AUTH` with the Composer authentication configuration [as described here](https://getcomposer.org/doc/articles/authentication-for-private-packages.md#authentication-using-the-composer-auth-environment-variable) to access Private Packagist.
36
+
Conductor automatically creates [short-lived authentication tokens](../composer-authentication.md#conductor-authentication-tokens) to access Private Packagist.
37
+
However, if you prefer to manually setup authentication then you can configure the `COMPOSER_AUTH` environment variable.
38
+
Create a GitHub Actions secret `CONDUCTOR_COMPOSER_AUTH` with the Composer authentication configuration [as described here](https://getcomposer.org/doc/articles/authentication-for-private-packages.md#authentication-using-the-composer-auth-environment-variable) to access Private Packagist
39
+
and assign the secret value to the `COMPOSER_AUTH` environment variable like shown below.
We recommend to create a dedicated authentication token with update access. You can copy and paste the contents for the secret from the "Environment variable" tab in the Private Packagist UI while creating the token in "Settings" -> "Authentication Tokens". Remove the single quotes around the value.
0 commit comments