Skip to content

Commit 74f2ff2

Browse files
authored
Merge pull request #1 from common-workflow-lab/use-deploy-key
Use deploy key instead of personal access token
2 parents bd2bd8b + dfcdb23 commit 74f2ff2

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
badgedir: ${{ steps.run-conformance.outputs.badgedir }}
2929
repository: ${{ github.repository_owner }}/conformance
3030
upload-default-branch: true
31-
token: ${{ secrets.CONFORMANCE_TOKEN }}
31+
ssh-key: ${{ secrets.CONFORMANCE_KEY }}
3232
```
3333
3434
## Input parameters
@@ -40,6 +40,6 @@ jobs:
4040
| `badgedir` | true | - | full path to the directory that stores conformance badges |
4141
| `repository` | true | - | repository (in the form of `owner/repo`) to store badges |
4242
| `upload-default-branch` | false | false | whether uploading the result of HEAD in the default branch |
43-
| `token` | true | - | token to commit the repository specified in the `repository` field |
43+
| `ssh-key` | true | - | ssh key to commit the repository specified in the `repository` field. See [deploy keys](https://docs.github.com/en/developers/overview/managing-deploy-keys#deploy-keys) for details |
4444

4545
This action has no output parameters.

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ inputs:
2323
description: 'whether uploading the result of HEAD in the default branch'
2424
required: false
2525
default: false
26-
token:
27-
description: 'token to commit the repository specified in the `repository` field'
26+
ssh-key:
27+
description: 'deploy key to commit the repository specified in the `repository` field
2828
required: true
2929
runs:
3030
using: 'composite'
@@ -33,7 +33,7 @@ runs:
3333
with:
3434
repository: ${{ inputs.repository }}
3535
path: conformance
36-
token: ${{ inputs.token }}
36+
ssh-key: ${{ inputs.ssh-key }}
3737
- name: Save badges
3838
working-directory: conformance
3939
shell: bash

0 commit comments

Comments
 (0)