secret_name parameter
Set selected repositories for an organization secret
Replaces all repositories for an organization secret when the visibility
for repository access is set to selected
. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Path Parameters
Body
application/json
Body
An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility
is set to selected
. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.
Response
204
Response
Response
Path Parameters
Body
Add selected repository to an organization secret
Adds a repository to an organization secret when the visibility
for repository access is set to selected
. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Path Parameters
secret_name parameter
Response
Response
No Content when repository was added to the selected list
Path Parameters
Remove selected repository from an organization secret
Removes a repository from an organization secret when the visibility
for repository access is set to selected
. The visibility is set when you Create or update an organization secret. You must authenticate using an access token with the admin:org
scope to use this endpoint. GitHub Apps must have the secrets
organization permission to use this endpoint.
Path Parameters
secret_name parameter
Response
Response
Response when repository was removed from the selected list
Path Parameters
List artifacts for a repository
Lists all artifacts for a repository. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Query Parameters
Results per page (max 100)
Default:30
Page number of the results to fetch.
Default:1
Path Parameters
Response
200 application/json
Response
Response
An artifact
Show Child Parameters
Path Parameters
Query Parameters
Get an artifact
Gets a specific artifact for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the repo
scope. GitHub Apps must have the actions:read
permission to use this endpoint.
Path Parameters
artifact_id parameter
Response
200 application/json
Response
Response
Artifact
An artifact
Example:5
Example:MDEwOkNoZWNrU3VpdGU1
The name of the artifact.
Example:AdventureWorks.Framework
The size in bytes of the artifact.
Example:12345
Example:https://api.github.com/repos/github/hello-world/actions/artifacts/5
Example:https://api.github.com/repos/github/hello-world/actions/artifacts/5/zip
Whether or not the artifact has expired.