Skip to content

Commit eee1a0a

Browse files
committed
ci: implement signature assistant workflow directly
...as opposed to trying to use it as a shared workflow
1 parent 6e11b0e commit eee1a0a

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/signature-assistant.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,20 @@ permissions:
1212
statuses: write
1313

1414
jobs:
15-
signature-assistant:
16-
uses: scratchfoundation/scratch-agreements/.github/workflows/assistant.yml@main
17-
secrets:
18-
GHA_AGREEMENTS_PAT: ${{ secrets.GHA_AGREEMENTS_PAT }}
15+
CLA-Assistant:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: "CLA Assistant"
19+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
20+
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
# the below token should have repo scope and must be manually added by you in the repository's secrets
24+
PERSONAL_ACCESS_TOKEN: ${{ secrets.GHA_AGREEMENTS_PAT }}
25+
with:
26+
remote-organization-name: 'scratchfoundation'
27+
remote-repository-name: 'scratch-agreements'
28+
path-to-signatures: 'signatures/version1/cla.json'
29+
path-to-document: 'https://github.com/scratchfoundation/scratch-agreements/blob/main/CLA.md'
30+
branch: 'main'
31+
allowlist: semantic-release-bot,*[bot]

0 commit comments

Comments
 (0)