fix: Generate package-lock.json when missing from claude-code tarball #764
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "CLA Assistant" | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_target: | |
| types: [opened, synchronize] | |
| branches: [main] | |
| # Run in merge queue but skip the step (shows as passing check) | |
| merge_group: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Explicitly set permissions for the workflow | |
| permissions: | |
| actions: write | |
| contents: write | |
| pull-requests: write | |
| statuses: write | |
| jobs: | |
| # Single job that handles all event types with consistent naming | |
| # This ensures the 'cla-check' status is reported for both PRs and merge queue | |
| cla-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # For merge queue and workflow_dispatch: skip actual CLA check (already verified at PR time) | |
| - name: Skip CLA for merge queue | |
| if: github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch' | |
| run: echo "CLA check is performed on PRs, not in merge queue. Passing." | |
| # For PRs and issue comments: run the actual CLA check | |
| - name: "CLA Assistant" | |
| if: github.event_name != 'merge_group' && github.event_name != 'workflow_dispatch' && ((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') | |
| uses: contributor-assistant/[email protected] | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # This should be a Personal Access Token with repo scope | |
| PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT_PAT }} | |
| with: | |
| path-to-signatures: 'CLA/version_1/CLA_SIGNATORIES.md' | |
| path-to-document: 'https://github.com/${{ github.repository }}/blob/main/CLA/version_1/CLA.md' | |
| # Branch where CLA signatures will be stored | |
| branch: 'IMPT_cla_signatures' | |
| allowlist: 'dependabot[bot],github-actions[bot],copilot[bot],github-copilot[bot],claude,copilot,copilot-swe-agent[bot],*[bot]' | |
| # Custom text for the CLA comment | |
| custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA' | |
| custom-allsigned-prcomment: 'All contributors have signed the CLA. ✅' | |
| lock-pullrequest-aftermerge: false | |
| use-dco-flag: true |