From: Andrew Grimberg Date: Thu, 29 May 2025 19:23:56 +0000 (-0700) Subject: CI: Add checkout options for Gerrit changes X-Git-Tag: v0.37.13~2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=9f0caaa9c18add048854afd47396f4023fc4327b;p=releng%2Flftools.git CI: Add checkout options for Gerrit changes * Uses the correct checkout options for Gerrit changes in the GitHub Actions workflow. * Updates some yamllint issues * Disables requirement for issues to be in the commit message Signed-off-by: Andrew Grimberg Change-Id: I7de53a0cdeffe1e5437cacf4a366abc91de5ae3d --- diff --git a/.github/workflows/gerrit-verify.yaml b/.github/workflows/gerrit-verify.yaml index 42e30e49..96f80a69 100644 --- a/.github/workflows/gerrit-verify.yaml +++ b/.github/workflows/gerrit-verify.yaml @@ -98,11 +98,19 @@ jobs: GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" steps: # Harden the runner used by this workflow - - uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 + # yamllint disable-line rule:line-length + - uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 with: egress-policy: 'audit' + # yamllint disable-line rule:line-length - uses: lfit/checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63 # v0.9 + with: + gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} + gerrit-project: ${{ inputs.GERRIT_PROJECT }} + gerrit-url: ${{ vars.GERRIT_URL }} + delay: "0s" + fetch-depth: 0 - name: 'Build Python project' id: python-build @@ -124,11 +132,19 @@ jobs: timeout-minutes: 12 steps: # Harden the runner used by this workflow - - uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 + # yamllint disable-line rule:line-length + - uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 with: egress-policy: audit + # yamllint disable-line rule:line-length - uses: lfit/checkout-gerrit-change-action@54d751e8bd167bc91f7d665dabe33fae87aaaa63 # v0.9 + with: + gerrit-refspec: ${{ inputs.GERRIT_REFSPEC }} + gerrit-project: ${{ inputs.GERRIT_PROJECT }} + gerrit-url: ${{ vars.GERRIT_URL }} + delay: "0s" + fetch-depth: 0 - name: "Python tests [pytest] ${{ matrix.python-version }}" # yamllint disable-line rule:line-length diff --git a/.gitlint b/.gitlint index aa389fab..fb81a138 100644 --- a/.gitlint +++ b/.gitlint @@ -96,5 +96,5 @@ contrib=contrib-title-conventional-commits,contrib-body-requires-signed-off-by types=Fix,Feat,Chore,Docs,Style,Refactor,Perf,Test,Revert,CI,Build # Require RELENG issues in commit messages -[body-match-regex] -regex=(.*)Issue:\s+([Ff][Ii][Xx][Ee][Ss]\s+)?[a-zA-Z0-9-]+\/[a-zA-Z0-9_-]+#\d+(.*) +#[body-match-regex] +#regex=(.*)Issue:\s+([Ff][Ii][Xx][Ee][Ss]\s+)?[a-zA-Z0-9-]+\/[a-zA-Z0-9_-]+#\d+(.*)