From adec89fa72ef7611af5cbbf9fc53c41ddddc09ab Mon Sep 17 00:00:00 2001 From: borislavr Date: Wed, 13 Aug 2025 09:12:12 +0000 Subject: [PATCH 1/3] chore(ci): update of CLA workflow CLA will not executed on PRs in draft state [skip ci] --- .github/workflows/cla.yaml | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index 6dca40e..9655936 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -1,11 +1,35 @@ +--- name: CLA Assistant on: issue_comment: types: [created] pull_request_target: - types: [opened,closed,synchronize] + types: [opened, closed, synchronize] + +permissions: + contents: read + jobs: - cla_assistant: - uses: Netcracker/qubership-workflow-hub/.github/workflows/cla.yaml@main - secrets: - personal_access_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} \ No newline at end of file + CLAAssistant: + if: github.event.pull_request.draft == false + permissions: + actions: write + contents: write + pull-requests: write + statuses: write + runs-on: ubuntu-latest + steps: + - name: "CLA Assistant" + 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' + uses: contributor-assistant/github-action@v2.6.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ACCESS_TOKEN }} + with: + path-to-signatures: 'signatures/version1/cla.json' + path-to-document: 'https://github.com/Netcracker/qubership-github-workflows/blob/main/CLA/cla.md' + # branch should not be protected + branch: 'main' + allowlist: NetcrackerCLPLCI,web-flow,bot* + remote-repository-name: cla-storage + remote-organization-name: Netcracker From 37cedc6685b87f7d352564de513e779280bccc53 Mon Sep 17 00:00:00 2001 From: borislavr Date: Mon, 13 Oct 2025 13:21:35 +0000 Subject: [PATCH 2/3] chore(ci): update of CLA workflow Pinned `contributor-assistant/github-action` version to v2.6.1 SHA --- .github/workflows/cla.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index 9655936..3ee48eb 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -11,7 +11,6 @@ permissions: jobs: CLAAssistant: - if: github.event.pull_request.draft == false permissions: actions: write contents: write @@ -21,7 +20,7 @@ jobs: steps: - name: "CLA Assistant" 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' - uses: contributor-assistant/github-action@v2.6.1 + uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 #v2.6.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ACCESS_TOKEN }} From eeb2376ff00ba728cdc36b8ca2b105b8aead8d7a Mon Sep 17 00:00:00 2001 From: borislavr Date: Thu, 14 May 2026 10:38:33 +0000 Subject: [PATCH 3/3] chore(ci): update of CLA workflow Switching to our own copy of the CLAAssistant action, as the original action has been archived. Plus, our version has been rewritten for Node.24. --- .github/workflows/cla.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index 3ee48eb..152b919 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -4,7 +4,7 @@ on: issue_comment: types: [created] pull_request_target: - types: [opened, closed, synchronize] + types: [opened] permissions: contents: read @@ -20,13 +20,13 @@ jobs: steps: - name: "CLA Assistant" 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' - uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 #v2.6.1 + uses: Netcracker/qubership-workflow-hub/actions/cla-assistant@e64a1ee2fc2f68ab44a4ef416c27d83ce36ba8e1 # v2.2.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ACCESS_TOKEN }} with: path-to-signatures: 'signatures/version1/cla.json' - path-to-document: 'https://github.com/Netcracker/qubership-github-workflows/blob/main/CLA/cla.md' + path-to-document: 'https://github.com/Netcracker/qubership-workflow-hub/blob/release/v2.2.0/CLA/cla.md' # branch should not be protected branch: 'main' allowlist: NetcrackerCLPLCI,web-flow,bot*