From 30c68509561bb1a38b2d78ff0f902faae3706d76 Mon Sep 17 00:00:00 2001 From: Carmit Hershman Date: Tue, 5 May 2026 09:02:43 +0300 Subject: [PATCH] refactor: update CLA workflow for improved readability and functionality using jforg global action --- .github/workflows/cla.yml | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index cf01daa..68f21c7 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -4,32 +4,22 @@ on: issue_comment: types: [ created ] pull_request_target: - types: [ opened,synchronize ] + types: [ opened, synchronize ] + +permissions: + actions: write + contents: write + pull-requests: write + statuses: write jobs: CLAssistant: runs-on: ubuntu-latest steps: - - uses: actions-ecosystem/action-regex-match@v2 - id: sign-or-recheck + - name: Run CLA Check + uses: jfrog/.github/actions/cla@main with: - text: ${{ github.event.comment.body }} - regex: '\s*(I have read the CLA Document and I hereby sign the CLA)|(recheck)\s*' - - - name: "CLA Assistant" - if: ${{ steps.sign-or-recheck.outputs.match != '' || github.event_name == 'pull_request_target' }} - # Alpha Release - uses: contributor-assistant/github-action@v2.6.1 - env: - # Generated and maintained by GitHub + event_comment_body: ${{ github.event.comment.body }} + event_name: ${{ github.event_name }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # JFrog organization secret - PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_SIGN_TOKEN }} - with: - path-to-signatures: 'signed_clas.json' - path-to-document: 'https://jfrog.com/cla/' - remote-organization-name: 'jfrog' - remote-repository-name: 'jfrog-signed-clas' - # branch should not be protected - branch: 'master' - allowlist: bot* \ No newline at end of file + CLA_SIGN_TOKEN: ${{ secrets.CLA_SIGN_TOKEN }} \ No newline at end of file