Skip to content

Commit 1c062d2

Browse files
Richard87Copilot
andcommitted
chore: harden github actions with actions-hardify
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a39a652 commit 1c062d2

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/create-releases.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- main
66
workflow_dispatch:
77

8+
permissions: {}
89
jobs:
910
unreleased-prs-metadata:
1011
name: Get list of pending release pull requests

.github/workflows/pr.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ on:
44
pull_request:
55
branches: [ main ]
66

7+
permissions: {}
78
jobs:
89
test:
910
runs-on: ubuntu-latest
1011
permissions:
1112
contents: read
1213
steps:
13-
- uses: actions/checkout@v6
14+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1415

1516
- name: Set up Go
16-
uses: actions/setup-go@v5
17+
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
1718
with:
1819
go-version-file: 'go.mod'
1920

@@ -26,13 +27,13 @@ jobs:
2627
permissions:
2728
contents: read
2829
steps:
29-
- uses: actions/checkout@v6
30+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3031
with:
3132
fetch-depth: 2
32-
- uses: actions/setup-go@v5
33+
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
3334
with:
3435
go-version-file: 'go.mod'
3536
- name: golangci-lint
36-
uses: golangci/golangci-lint-action@v8
37+
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
3738
with:
3839
version: v2.7.2

.github/workflows/prepare-release-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- main
88
workflow_dispatch:
99

10+
permissions: {}
1011
concurrency:
1112
group: ${{ github.workflow }}
1213

0 commit comments

Comments
 (0)