Skip to content

Commit

Permalink
marks extended-verification-token as preview feature, cleans up for v…
Browse files Browse the repository at this point in the history
…1 release
  • Loading branch information
Paul Savoie committed Aug 12, 2024
1 parent 1aab3c6 commit e7687e6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions actions/submit-signing-request/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ The _Github Actions Trusted Build System_ must be enabled in the organization an
| `github-artifact-id` | :heavy_check_mark: | Id of the Github Actions artifact. Must be uploaded using the [actions/upload-artifact](https://github.com/actions/upload-artifact) v4+ action before it can be signed. Use `{{ steps.<step-id>.outputs.artifact-id }}` from the preceding actions/upload-artifact action step.
| `wait-for-completion` | - | If true, the action will wait for the signing request to complete. Defaults to `true`.
| `output-artifact-directory` | - | Path to where the signed artifact will be extracted. If not specified, the task will not download the signed artifact from SignPath.
| `github-token` | - | GitHub access token used to read job details and download the artifact. Defaults to the [`secrets.GITHUB_TOKEN`](https://docs.github.com/en/actions/security-guides/automatic-token-authentication). Requires the `action:read` and `content:read` permissions. _Note: This token will be stored (encrypted) on SignPath.io._
| `github-extended-verification-token` | - | Token used to query the runners API. Only required if larger runners are used. Requires the `organization_self_hosted_runners:read` permission.
| `github-token` | - | GitHub access token used to read job details and download the artifact. Defaults to the [`secrets.GITHUB_TOKEN`](https://docs.github.com/en/actions/security-guides/automatic-token-authentication). Requires the `action:read` and `content:read` permissions.
| `wait-for-completion-timeout-in-seconds` | - | Maximum time in seconds that the action will wait for the signing request to complete. Defaults to 10 minutes.
| `service-unavailable-timeout-in-seconds` | - | Total time in seconds that the action will wait for a single service call to succeed (across several retries). Defaults to 10 minutes.
| `download-signed-artifact-timeout-in-seconds` | - | HTTP timeout when downloading the signed artifact. Defaults to 5 minutes.
Expand All @@ -33,12 +32,12 @@ See also [action.yml](action.yml)

## Samples

### Sign published artifact and download the signed artifact back to the build agent file system
#### Sign published artifact and download the signed artifact back to the build agent file system

```yaml
steps:
- id: optional_step_id
uses: signpath/github-action-submit-signing-request@v0.4
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '<SignPath organization id>'
Expand All @@ -57,7 +56,7 @@ steps:
```yaml
steps:
- id: optional_step_id
uses: signpath/github-action-submit-signing-request@v0.4
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
organization-id: '<SignPath organization id>'
Expand All @@ -67,7 +66,7 @@ steps:
wait-for-completion: false
```
#### Use output parameters
### Use output parameters
The action supports the following output parameters:
- `signing-request-id`: The id of the newly created signing request
Expand Down
4 changes: 2 additions & 2 deletions actions/submit-signing-request/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ inputs:
description: 'Id of the Github Actions artifact. Use `steps.<step-id>.outputs.artifact-id` from the preceding actions/upload-artifact action step.'
required: true
github-token:
description: 'GitHub access token used to read job details and download the artifact. Defaults to secrets.GITHUB_TOKEN. Requires the "action:read" and "content:read" permissions. Note: This token will be stored (encrypted) on SignPath.io.'
description: 'GitHub access token used to read job details and download the artifact. Defaults to the [`secrets.GITHUB_TOKEN`](https://docs.github.com/en/actions/security-guides/automatic-token-authentication).'
default: ${{ github.token }}
required: false
github-extended-verification-token:
description: 'Token used to query the runners API. Only required if larger runners are used. Requires the organization_self_hosted_runners:read permission'
description: 'Preview only: Contact SignPath support for details.'
required: false
parameters:
description: 'Multiline-string of values that map to user-defined parameters in the Artifact Configuration. Use one line per parameter with the format <name>: "<value>" where <value> needs to be a valid JSON string.'
Expand Down

0 comments on commit e7687e6

Please sign in to comment.