From 4cda1e75eac580b5b65aaa3c97abf5b61f3eb570 Mon Sep 17 00:00:00 2001 From: borislavr Date: Wed, 13 Aug 2025 09:26:21 +0000 Subject: [PATCH 1/2] chore(ci): update of CLA workflow CLA will not executed on PRs in draft state [skip ci] --- .github/workflows/cla.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/cla.yaml diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml new file mode 100644 index 0000000000..96559367e4 --- /dev/null +++ b/.github/workflows/cla.yaml @@ -0,0 +1,35 @@ +--- +name: CLA Assistant +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened, closed, synchronize] + +permissions: + contents: read + +jobs: + 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 520cbb05c9ab5c8687424a515dd9f15b121d99ef Mon Sep 17 00:00:00 2001 From: borislavr Date: Mon, 13 Oct 2025 13:34:34 +0000 Subject: [PATCH 2/2] 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 96559367e4..3ee48ebd0d 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 }}