Skip to content

Commit ebebda8

Browse files
committed
ci: pin GitHub Actions (with pinact)
1 parent 82083a0 commit ebebda8

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/pushes.yaml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ on:
1414
- 'wip_*'
1515
pull_request:
1616

17+
permissions: {}
18+
# Control the GITHUB_TOKEN permissions.
19+
# By having this block, all permissions not listed here are set to none.
20+
# Available permissions listed at:
21+
# <https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token>
22+
# Which API calls need which permissions at what level, listed at:
23+
# <https://docs.github.com/en/rest/reference/permissions-required-for-github-apps>
24+
1725
jobs:
1826
test:
1927
runs-on: ubuntu-latest
@@ -24,18 +32,20 @@ jobs:
2432
canonical: true
2533
- go: 'oldstable'
2634
canonical: false
35+
permissions:
36+
contents: read
2737

2838
steps:
2939

3040
- name: Checkout
31-
uses: actions/checkout@v4
41+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3242
with:
3343
fetch-depth: 0
3444
# security posture improvement:
3545
persist-credentials: false
3646

3747
- name: Set up Go
38-
uses: actions/setup-go@v5
48+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
3949
with:
4050
go-version: ${{ matrix.go }}
4151

@@ -53,7 +63,7 @@ jobs:
5363
# These are independent of how the matrix is setup, or if a matrix is even used.
5464

5565
- name: Go caches
56-
uses: actions/cache@v4
66+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
5767
with:
5868
# (This bit copied from the actions/setup-go@v2 version)
5969
# In order:
@@ -103,7 +113,7 @@ jobs:
103113
go test -v -tags=integration -coverprofile=${{ runner.temp }}/profile.cov ./...
104114
105115
- name: Send coverage
106-
uses: shogo82148/actions-goveralls@v1
116+
uses: shogo82148/actions-goveralls@e6875f831db61e6abffbd8df91a2eb6cd24b46c9 # v1.9.1
107117
with:
108118
path-to-profile: ${{ runner.temp }}/profile.cov
109119
flag-name: ${{ steps.go-settings.outputs.go-version }}
@@ -116,12 +126,12 @@ jobs:
116126
steps:
117127

118128
- name: coveralls.io completion notification
119-
uses: shogo82148/actions-goveralls@v1
129+
uses: shogo82148/actions-goveralls@e6875f831db61e6abffbd8df91a2eb6cd24b46c9 # v1.9.1
120130
with:
121131
parallel-finished: true
122132

123133
- name: Notify PT Slack
124-
uses: rtCamp/action-slack-notify@v2
134+
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2.3.3
125135
env:
126136
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_PT_AUTOBUILDS }}
127137

0 commit comments

Comments
 (0)