Update other 3rd patry github workflows to pin SHA

This commit is contained in:
Nathan Woodrow 2025-05-09 20:55:05 +10:00
parent 2e6d4232c0
commit cbe25d567c
No known key found for this signature in database
7 changed files with 14 additions and 14 deletions

View File

@ -20,6 +20,6 @@ jobs:
- name: Backport Bot - name: Backport Bot
id: backport id: backport
if: github.event.pull_request.merged && ( ( github.event.action == 'closed' && contains( join( github.event.pull_request.labels.*.name ), 'backport') ) || contains( github.event.label.name, 'backport' ) ) if: github.event.pull_request.merged && ( ( github.event.action == 'closed' && contains( join( github.event.pull_request.labels.*.name ), 'backport') ) || contains( github.event.label.name, 'backport' ) )
uses: m-kuhn/backport@v1.2.7 uses: m-kuhn/backport@7f3cab83e4b3b26aefcffda21851c3dc3d389f45 #v1.2.7
with: with:
github_token: ${{ secrets.GH_TOKEN_BOT }} github_token: ${{ secrets.GH_TOKEN_BOT }}

View File

@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: 🐩 Install CMake and Ninja - name: 🐩 Install CMake and Ninja
uses: lukka/get-cmake@latest uses: lukka/get-cmake@ea004816823209b8d1211e47b216185caee12cc5 # latest
with: with:
# Pin to specific version to avoid rebuilding too often # Pin to specific version to avoid rebuilding too often
# Also helps to avoid spurious build failures like https://github.com/qgis/QGIS/pull/47098 # Also helps to avoid spurious build failures like https://github.com/qgis/QGIS/pull/47098
@ -54,7 +54,7 @@ jobs:
python-version: '3.11' python-version: '3.11'
- name: 🍭 Setup XCode - name: 🍭 Setup XCode
uses: maxim-lobanov/setup-xcode@v1.6.0 uses: maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
with: with:
xcode-version: latest-stable xcode-version: latest-stable

View File

@ -162,7 +162,7 @@ jobs:
silversearcher-ag silversearcher-ag
- name: Retrieve changed files - name: Retrieve changed files
uses: tj-actions/changed-files@v46 uses: tj-actions/changed-files@ed68ef82c095e0d48ec87eccea555d944a631a4c #v46
id: changed_files id: changed_files
with: with:
separator: " " separator: " "

View File

@ -26,7 +26,7 @@ jobs:
- name: Create comment about documentation - name: Create comment about documentation
if: github.event.label.name == 'Needs Documentation' if: github.event.label.name == 'Needs Documentation'
uses: peter-evans/create-or-update-comment@v4 uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with: with:
token: ${{ secrets.GH_TOKEN_BOT }} token: ${{ secrets.GH_TOKEN_BOT }}
issue-number: ${{ github.event.pull_request.number }} issue-number: ${{ github.event.pull_request.number }}
@ -44,7 +44,7 @@ jobs:
- name: Create comment about changelog - name: Create comment about changelog
if: github.event.label.name == 'Changelog' if: github.event.label.name == 'Changelog'
uses: peter-evans/create-or-update-comment@v4 uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with: with:
token: ${{ secrets.GH_TOKEN_BOT }} token: ${{ secrets.GH_TOKEN_BOT }}
issue-number: ${{ github.event.pull_request.number }} issue-number: ${{ github.event.pull_request.number }}
@ -115,7 +115,7 @@ jobs:
# get commits from the PR # get commits from the PR
- name: Get PR commits - name: Get PR commits
uses: octokit/request-action@v2.x uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
id: get_pr_commits id: get_pr_commits
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -135,7 +135,7 @@ jobs:
# create the documentation issue # create the documentation issue
- name: Create Documentation issue - name: Create Documentation issue
id: doc_issue id: doc_issue
uses: dacbd/create-issue-action@v2.0.0 uses: dacbd/create-issue-action@cdb57ab6ff8862aa09fee2be6ba77a59581921c2 # v2.0.0
with: with:
token: ${{ secrets.GH_TOKEN_BOT }} token: ${{ secrets.GH_TOKEN_BOT }}
owner: qgis owner: qgis
@ -160,7 +160,7 @@ jobs:
# write comment to ping the PR author # write comment to ping the PR author
- name: Create comment - name: Create comment
uses: peter-evans/create-or-update-comment@v4 uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0
with: with:
token: ${{ secrets.GH_TOKEN_BOT }} token: ${{ secrets.GH_TOKEN_BOT }}
issue-number: ${{ github.event.pull_request.number }} issue-number: ${{ github.event.pull_request.number }}

View File

@ -12,7 +12,7 @@ jobs:
if: contains(github.event.pull_request.labels.*.name, 'stale') if: contains(github.event.pull_request.labels.*.name, 'stale')
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions-ecosystem/action-remove-labels@v1 - uses: actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 #v1.0
if: ${{ github.event.comment.user.url != 'https://github.com/apps/github-actions' }} if: ${{ github.event.comment.user.url != 'https://github.com/apps/github-actions' }}
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -88,7 +88,7 @@ jobs:
steps: steps:
- name: Free Disk Space (Ubuntu) - name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # main
with: with:
tool-cache: true tool-cache: true
large-packages: false large-packages: false
@ -274,7 +274,7 @@ jobs:
steps: steps:
- name: Free Disk Space (Ubuntu) - name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # main
with: with:
tool-cache: true tool-cache: true
large-packages: false large-packages: false
@ -399,7 +399,7 @@ jobs:
steps: steps:
- name: Free Disk Space (Ubuntu) - name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # main
with: with:
tool-cache: true tool-cache: true
large-packages: false large-packages: false

View File

@ -20,7 +20,7 @@ jobs:
run: pip install nose2 mock termcolor pyyaml run: pip install nose2 mock termcolor pyyaml
- name: Get PR branch - name: Get PR branch
uses: alessbell/pull-request-comment-branch@v2.1.0 uses: alessbell/pull-request-comment-branch@ef3408c9757d05f89cb525036383033a313758a0 # v2.1.0
if: ${{ github.event_name == 'issue_comment' }} if: ${{ github.event_name == 'issue_comment' }}
id: comment-branch id: comment-branch