add iac credential probe; split file path from in-file location #81
Workflow file for this run
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 Check | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-cla: | |
| runs-on: ubuntu-latest | |
| env: | |
| AUTHOR: ${{ github.actor }} | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Check for Signature | |
| run: | | |
| # Get the PR author's username | |
| # Check if the author's username is in the signatures file | |
| if grep -q "^${AUTHOR} - " CLA_SIGNATURES.md; then | |
| echo "✅ CLA signed by $AUTHOR" | |
| exit 0 | |
| else | |
| echo "❌ CLA NOT SIGNED." | |
| echo "---------------------------------------------------" | |
| echo "Hi @$AUTHOR! To get your PR merged, please sign our CLA." | |
| echo "HOW TO FIX: Edit 'CLA_SIGNATURES.md' in this PR and add a line with your username: $AUTHOR" | |
| echo "---------------------------------------------------" | |
| exit 1 | |
| fi |