CI: Update GitHub2Gerrit workflow 23/142323/2
authorMatthew Watkins <mwatkins@linuxfoundation.org>
Wed, 29 Oct 2025 15:07:39 +0000 (15:07 +0000)
committerMatthew Watkins <mwatkins@linuxfoundation.org>
Wed, 29 Oct 2025 15:10:53 +0000 (15:10 +0000)
Issue-ID: CIMAN-33

Change-Id: Ief17cf32644bfe6f84505c07803293bab5fdd805
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
.github/workflows/github2gerrit.yaml

index 01baeae..c8e832d 100644 (file)
@@ -39,14 +39,23 @@ jobs:
       issues: write
     timeout-minutes: 12
     steps:
-      - name: Checkout repository
+      # Harden the runner used by this workflow
+      # yamllint disable-line rule:line-length
+      - uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
+        name: 'Harden runner'
+        with:
+          egress-policy: audit
+
+      - name: 'Checkout repository'
+        # yamllint disable-line rule:line-length
         uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8  # v5.0.0
         with:
           fetch-depth: 10
           ref: ${{ github.event.pull_request.head.sha || github.sha }}
 
-      - name: Run GitHub2Gerrit Action
-        uses: modeseven-lfreleng-actions/github2gerrit-action@main
+      - name: 'Run GitHub2Gerrit Action'
+        # yamllint disable-line rule:line-length
+        uses: lfreleng-actions/github2gerrit-action@f3ec169f35720fd2169110f55cc91e68f99f3a73  # v0.1.20
         with:
           USE_PR_AS_COMMIT: true
           ALLOW_DUPLICATES: ${{ inputs.allow_duplicates }}