Skip to content

Commit 3975782

Browse files
authored
chore: use actions pinned to hashes for security (#131)
1 parent 1d02477 commit 3975782

17 files changed

+25
-25
lines changed

.github/workflows/check-goreleaser-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
cache: false # Disable caching to avoid cache poisoning
4040

4141
- name: Install Go Releaser
42-
uses: goreleaser/goreleaser-action@v6
42+
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
4343
with:
4444
distribution: goreleaser
4545
version: latest

.github/workflows/lint-github-actions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
sparse-checkout-cone-mode: false
4444

4545
- name: Lint GitHub Actions
46-
uses: reviewdog/action-actionlint@v1
46+
uses: reviewdog/action-actionlint@a5524e1c19e62881d79c1f1b9b6f09f16356e281 # v1.65.2
4747

4848
- name: Check GitHub Actions with 'actionlint'
4949
# Ref: https://github.com/rhysd/actionlint/blob/main/docs/usage.md#use-actionlint-on-github-actions

.github/workflows/lint-go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
${{ runner.os }}-go-
5252
5353
- name: Run golangci-lint
54-
uses: golangci/golangci-lint-action@v8
54+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
5555
with:
5656
# We use cache provided by "actions/setup-go@v5"
5757
skip-cache: true

.github/workflows/lint-markdown.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Set up Ruby
3838
# See https://github.com/ruby/setup-ruby#versioning
39-
uses: ruby/setup-ruby@v1
39+
uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # v1.244.0
4040
with:
4141
ruby-version: 3.0
4242

.github/workflows/lint-yaml.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
persist-credentials: false
4040

4141
- name: Check YAML files with linter
42-
uses: ibiqlik/action-yamllint@v3
42+
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
4343
with:
4444
# All files under base dir
4545
file_or_dir: "."

.github/workflows/release-binary.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: Create release
33

4-
on:
4+
on: # yamllint disable-line rule:truthy
55
push:
66
branches: ["main", "master"]
77
# Release whenever this file changes
@@ -43,7 +43,7 @@ jobs:
4343
4444
- name: Create new tag
4545
id: tag_version
46-
uses: mathieudutour/github-tag-action@v6.2
46+
uses: mathieudutour/github-tag-action@a22cf08638b34d5badda920f9daf6e72c477b07b # v6.2
4747
with:
4848
custom_tag: ${{ steps.read-version.outputs.version }}
4949
tag_prefix: "" # To prevent extra "v" in the prefix
@@ -76,7 +76,7 @@ jobs:
7676

7777
# More assembly might be required: Docker logins, GPG, etc. It all depends
7878
# on your needs.
79-
- uses: goreleaser/goreleaser-action@v6
79+
- uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
8080
with:
8181
distribution: goreleaser
8282
version: latest

src/gabo/internal/generator/data/build-android-incomplete.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
persist-credentials: false
4747

4848
- name: Validate Gradle Wrapper is a known binary
49-
uses: gradle/actions/wrapper-validation@v3
49+
uses: gradle/actions/wrapper-validation@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
5050

5151
- name: Set up JDK
5252
uses: actions/setup-java@v4
@@ -55,7 +55,7 @@ jobs:
5555
distribution: "zulu"
5656

5757
- name: Use Gradle Build cache
58-
uses: gradle/gradle-build-action@v2
58+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
5959
with:
6060
gradle-version: "current"
6161

src/gabo/internal/generator/data/check-goreleaser-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
cache-dependency-path: src/gabo/go.sum
5151

5252
- name: Install Go Releaser
53-
uses: goreleaser/goreleaser-action@v6
53+
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
5454
with:
5555
distribution: goreleaser
5656
version: latest

src/gabo/internal/generator/data/compress-images.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Compress Images
3838
id: calibre
39-
uses: calibreapp/image-actions@main
39+
uses: calibreapp/image-actions@82caf2e46a1950e602c8440fde4730ec1da6fef4 # main
4040
with:
4141
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
4242
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
@@ -45,7 +45,7 @@ jobs:
4545
# Add ignore paths via `ignorePaths` here
4646
- name: Create New Pull Request If Needed
4747
if: steps.calibre.outputs.markdown != ''
48-
uses: peter-evans/create-pull-request@v6
48+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
4949
with:
5050
title: "Compressed Images via Calibre"
5151
branch-suffix: timestamp

src/gabo/internal/generator/data/lint-android.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ jobs:
5454
java-version: "17"
5555

5656
- name: Use Gradle Build cache
57-
uses: gradle/gradle-build-action@v2
57+
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
5858
with:
5959
gradle-version: "current"
6060

6161
- name: Validate Gradle Wrapper is a known binary
62-
uses: gradle/actions/wrapper-validation@v3
62+
uses: gradle/actions/wrapper-validation@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
6363

6464
# # Required by apps that depend on Firebase
6565
# - name: Add mock google-services.json
@@ -70,7 +70,7 @@ jobs:
7070
- name: Run Gradle Lint
7171
run: ./gradlew lint
7272

73-
- uses: yutailang0119/action-android-lint@v3
73+
- uses: yutailang0119/action-android-lint@8345a8dece583030445b0b5f9611209431d601c4 # v5.0.0
7474
with:
7575
report-path: "**/build/reports/*.xml" # Support glob patterns by https://www.npmjs.com/package/@actions/glob
7676
continue-on-error: false # If annotations contain error of severity, action-android-lint exit 1.

0 commit comments

Comments
 (0)