Skip to content

Commit d8b3a08

Browse files
committed
feat(ci): Pin all non-GitHub Actions
1 parent 5a8ccd9 commit d8b3a08

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.github/workflows/codeql-ql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v4
2222

2323
- name: "Set up Rust"
24-
uses: dtolnay/rust-toolchain@nightly
24+
uses: dtolnay/rust-toolchain@888c2e1ea69ab0d4330cbf0af1ecc7b68f368cc1 # v1
2525

2626
- name: "Build QL-for-QL"
2727
env:

.github/workflows/python-vendor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
8181
- name: "Create Pull Request with updated vendored dependencies"
8282
if: ${{ steps.vendoring.outputs.changes > 0 }}
83-
uses: peter-evans/create-pull-request@v6
83+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
8484
with:
8585
token: ${{ github.token }}
8686
commit-message: "[chore]: Update vendored dependencies"

.github/workflows/release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,34 @@ on:
1111
- patch
1212
- minor
1313
- major
14-
1514
workflow_call:
1615
inputs:
1716
version:
1817
description: "The version to release"
1918
required: true
2019
type: string
2120

22-
permissions:
23-
contents: write
24-
2521
jobs:
2622
release-next:
2723
runs-on: ubuntu-latest
2824
# If the workflow was triggered by workflow_dispatch
2925
if: ${{ github.event_name == 'workflow_dispatch' }}
26+
27+
permissions:
28+
contents: write
29+
pull-requests: write
30+
3031
steps:
3132
- name: "Checkout"
3233
uses: actions/checkout@v3
3334

3435
- name: "Patch Release Me"
35-
uses: 42ByteLabs/patch-release-me@0.3.0
36+
uses: 42ByteLabs/patch-release-me@f950db6bce09f2156a5f2d1cc86ac60ed1663a9e # 0.5.3
3637
with:
3738
mode: ${{ github.event.inputs.bump }}
3839

3940
- name: "Create Release"
40-
uses: peter-evans/create-pull-request@v6
41+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
4142
with:
4243
token: ${{ github.token }}
4344
commit-message: "[chore]: Create release for ${{ github.event.inputs.version }}"
@@ -52,11 +53,15 @@ jobs:
5253
runs-on: ubuntu-latest
5354
# If the workflow was triggered by a workflow call and the version is not null
5455
if: ${{ github.event_name == 'workflow_call' && github.event.inputs.version != null }}
56+
57+
permissions:
58+
contents: write
59+
5560
steps:
5661
# https://github.com/peter-murray/semver-data-action
5762
- name: Parse SemVer
5863
id: version
59-
uses: peter-murray/semver-action@v1
64+
uses: peter-murray/semver-action@5a07021b987a48fb9129231397615329ad74703c # v1.0.1
6065
with:
6166
version: ${{ inputs.version }}
6267

0 commit comments

Comments
 (0)