Skip to content

Commit d11a65b

Browse files
committed
Pin actions to specific SHAs
1 parent 98c3020 commit d11a65b

File tree

12 files changed

+47
-47
lines changed

12 files changed

+47
-47
lines changed

.github/actions/docker-build/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ runs:
1717
env:
1818
REPOSITORY: ${{ github.repository }}
1919
- name: Set up Docker Buildx
20-
uses: docker/setup-buildx-action@v3
20+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
2121
- name: Login to GitHub registry
22-
uses: docker/login-action@v3
22+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
2323
with:
2424
username: ${{ github.actor }}
2525
password: ${{ inputs.token }}
2626
registry: ghcr.io
2727
- name: Build and push by digest
2828
id: build
29-
uses: docker/build-push-action@v6
29+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
3030
with:
3131
context: .
3232
platforms: linux/${{ inputs.platform }}
@@ -50,7 +50,7 @@ runs:
5050
digest="${{ steps.build.outputs.digest }}"
5151
touch "/tmp/digests/${digest#sha256:}"
5252
- name: Upload digest
53-
uses: actions/upload-artifact@v4
53+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5454
with:
5555
name: digests-${{ inputs.platform }}
5656
path: /tmp/digests/*

.github/workflows/actor-credentials.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ jobs:
3737
INPUTS_ACTOR: ${{ inputs.actor }}
3838
- name: Configure Git author
3939
id: configure_git_author
40-
uses: Homebrew/actions/git-user-config@master
40+
uses: Homebrew/actions/git-user-config@main
4141
with:
4242
token: ${{ secrets[format('PERSONAL_GITHUB_TOKEN_{0}', steps.retrieve_author.outputs.name)] }}

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Bazel, Linux, Swift 6.1 # pre-installed
1414
runs-on: ubuntu-24.04
1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
1717
with:
1818
persist-credentials: false
1919
- uses: ./.github/actions/bazel-linux-build
@@ -38,7 +38,7 @@ jobs:
3838
version: '6.1'
3939
container: ${{ matrix.image }}
4040
steps:
41-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
4242
with:
4343
persist-credentials: false
4444
- name: Build plugins

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
permissions:
1717
contents: read
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
2020
with:
2121
persist-credentials: false
2222
- name: Get Swift version

.github/workflows/docker.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ jobs:
5757
packages: write
5858
needs: set-context
5959
steps:
60-
- uses: actions/checkout@v4
60+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
6161
if: needs.set-context.outputs.checkout-ref == 'pr'
6262
with:
6363
persist-credentials: false
64-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
6565
if: needs.set-context.outputs.checkout-ref != 'pr'
6666
with:
6767
ref: ${{ needs.set-context.outputs.checkout-ref }}
@@ -79,11 +79,11 @@ jobs:
7979
packages: write
8080
needs: set-context
8181
steps:
82-
- uses: actions/checkout@v4
82+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
8383
if: needs.set-context.outputs.checkout-ref == 'pr'
8484
with:
8585
persist-credentials: false
86-
- uses: actions/checkout@v4
86+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
8787
if: needs.set-context.outputs.checkout-ref != 'pr'
8888
with:
8989
ref: ${{ needs.set-context.outputs.checkout-ref }}
@@ -104,15 +104,15 @@ jobs:
104104
- build-arm64
105105
steps:
106106
- name: Download digests
107-
uses: actions/download-artifact@v4
107+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
108108
with:
109109
path: /tmp/digests
110110
pattern: digests-*
111111
merge-multiple: true
112112
- name: Set up Docker Buildx
113-
uses: docker/setup-buildx-action@v3
113+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
114114
- name: Login to GitHub registry
115-
uses: docker/login-action@v3
115+
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
116116
with:
117117
username: ${{ github.actor }}
118118
password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
permissions:
1313
contents: read
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
1616
with:
1717
persist-credentials: false
18-
- uses: ruby/setup-ruby@v1
18+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
1919
with:
2020
bundler-cache: true
2121
- name: Build SwiftLint and SourceKitten

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Swift
1313
runs-on: ubuntu-24.04 # "Noble Numbat"
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
1616
with:
1717
persist-credentials: false
1818
- uses: ./.github/actions/bazel-linux-build
@@ -25,11 +25,11 @@ jobs:
2525
name: Markdown
2626
runs-on: ubuntu-24.04
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
2929
with:
3030
persist-credentials: false
3131
- name: Lint
32-
uses: DavidAnson/markdownlint-cli2-action@v20
32+
uses: DavidAnson/markdownlint-cli2-action@992badcdf24e3b8eb7e87ff9287fe931bcb00c6e # v20.0.0
3333
with:
3434
globs: |
3535
CHANGELOG.md
@@ -39,7 +39,7 @@ jobs:
3939
name: Actions
4040
runs-on: ubuntu-24.04
4141
steps:
42-
- uses: actions/checkout@v4
42+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
4343
with:
4444
persist-credentials: false
4545
- name: Register problem matcher

.github/workflows/plugins-sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ jobs:
1717
runs-on: ubuntu-24.04
1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
2121
with:
2222
persist-credentials: false
2323
- name: Run file sync
24-
uses: BetaHuhn/repo-file-sync-action@v1
24+
uses: BetaHuhn/repo-file-sync-action@8b92be3375cf1d1b0cd579af488a9255572e4619 # v1.21.1
2525
with:
2626
GH_PAT: ${{ secrets.SIMPLYDANNY_PLUGINS_SYNC }}
2727
IS_FINE_GRAINED: true

.github/workflows/post-release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
permissions:
2222
contents: write
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
2525
with:
2626
ref: main
2727
token: ${{ secrets[format('PERSONAL_GITHUB_TOKEN_{0}', needs.setup-credentials.outputs.author_uppercase)] }}
2828
persist-credentials: true
2929
- name: Configure Git author
30-
uses: Homebrew/actions/git-user-config@master
30+
uses: Homebrew/actions/git-user-config@main
3131
with:
3232
token: ${{ secrets[format('PERSONAL_GITHUB_TOKEN_{0}', needs.setup-credentials.outputs.author_uppercase)] }}
3333
- name: Merge release branch
@@ -48,7 +48,7 @@ jobs:
4848
permissions:
4949
contents: read
5050
steps:
51-
- uses: actions/checkout@v4
51+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
5252
with:
5353
ref: ${{ github.event.release.tag_name }}
5454
persist-credentials: false
@@ -66,15 +66,15 @@ jobs:
6666
contents: read
6767
steps:
6868
- name: Checkout repository
69-
uses: actions/checkout@v4
69+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
7070
with:
7171
ref: ${{ github.event.release.tag_name }}
7272
persist-credentials: false
7373
- name: Parse checksum
7474
id: parse_checksum
7575
run: echo "checksum=$(grep -o '[a-fA-F0-9]\{64\}' Package.swift)" >> "$GITHUB_OUTPUT"
7676
- name: Dispatch release of plugins package
77-
uses: peter-evans/repository-dispatch@v3
77+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
7878
with:
7979
token: ${{ secrets.SIMPLYDANNY_PLUGINS_SYNC }}
8080
repository: SimplyDanny/SwiftLintPlugins
@@ -98,15 +98,15 @@ jobs:
9898
steps:
9999
- name: Set up Homebrew
100100
id: set-up-homebrew
101-
uses: Homebrew/actions/setup-homebrew@master
101+
uses: Homebrew/actions/setup-homebrew@main
102102
with:
103103
test-bot: false
104104
- name: Configure Git author
105-
uses: Homebrew/actions/git-user-config@master
105+
uses: Homebrew/actions/git-user-config@main
106106
with:
107107
token: ${{ secrets[format('PERSONAL_GITHUB_TOKEN_{0}', needs.setup-credentials.outputs.author_uppercase)] }}
108108
- name: Update Homebrew formula
109-
uses: Homebrew/actions/bump-packages@master
109+
uses: Homebrew/actions/bump-packages@main
110110
with:
111111
token: ${{ secrets[format('PERSONAL_GITHUB_TOKEN_{0}', needs.setup-credentials.outputs.author_uppercase)] }}
112112
formulae: swiftlint

.github/workflows/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
contents: write
3737
steps:
3838
- name: Checkout repository
39-
uses: actions/checkout@v4
39+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
4040
with:
4141
persist-credentials: true
4242
- name: Checkout or create release branch
@@ -55,7 +55,7 @@ jobs:
5555
sed -i -e '3s/.*/ version = "${{ inputs.version }}",/' MODULE.bazel
5656
sed -i -e "s/^\(\s*s\.version\s*=\s*'\)[^']*'/\1${{ inputs.version }}'/" SwiftLint.podspec
5757
- name: Configure Git author
58-
uses: Homebrew/actions/git-user-config@master
58+
uses: Homebrew/actions/git-user-config@main
5959
with:
6060
token: ${{ secrets[format('PERSONAL_GITHUB_TOKEN_{0}', needs.setup-credentials.outputs.author_uppercase)] }}
6161
- name: Commit changes
@@ -71,11 +71,11 @@ jobs:
7171
contents: read
7272
steps:
7373
- name: Checkout repository
74-
uses: actions/checkout@v4
74+
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
7575
with:
7676
persist-credentials: false
7777
- name: Set up Ruby and Bundler
78-
uses: ruby/setup-ruby@v1
78+
uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
7979
with:
8080
bundler-cache: true
8181
- name: Lint Podspec # Make sure Podspec still builds okay on CI with old release.
@@ -95,7 +95,7 @@ jobs:
9595
permissions:
9696
contents: read
9797
steps:
98-
- uses: actions/checkout@v4
98+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
9999
with:
100100
ref: ${{ env.RELEASE_BRANCH }}
101101
persist-credentials: false
@@ -104,7 +104,7 @@ jobs:
104104
- name: Build binary
105105
run: make --debug spm_linux_build
106106
- name: Upload binary
107-
uses: actions/upload-artifact@v4
107+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
108108
with:
109109
name: swiftlint-linux-amd64
110110
path: .build/release/swiftlint
@@ -116,7 +116,7 @@ jobs:
116116
permissions:
117117
contents: read
118118
steps:
119-
- uses: actions/checkout@v4
119+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
120120
with:
121121
ref: ${{ env.RELEASE_BRANCH }}
122122
persist-credentials: false
@@ -125,7 +125,7 @@ jobs:
125125
- name: Build binary
126126
run: make --debug spm_linux_build
127127
- name: Upload binary
128-
uses: actions/upload-artifact@v4
128+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
129129
with:
130130
name: swiftlint-linux-arm64
131131
path: .build/release/swiftlint
@@ -137,14 +137,14 @@ jobs:
137137
permissions:
138138
contents: read
139139
steps:
140-
- uses: actions/checkout@v4
140+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
141141
with:
142142
ref: ${{ env.RELEASE_BRANCH }}
143143
persist-credentials: false
144144
- name: Build SwiftLint for macOS
145145
run: make --debug bazel_release
146146
- name: Upload build artifacts
147-
uses: actions/upload-artifact@v4
147+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
148148
with:
149149
name: swiftlint-macos
150150
path: |
@@ -167,18 +167,18 @@ jobs:
167167
actions: read
168168
contents: write
169169
steps:
170-
- uses: actions/checkout@v4
170+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
171171
with:
172172
ref: ${{ env.RELEASE_BRANCH }}
173173
persist-credentials: true
174174
- name: Configure author
175-
uses: Homebrew/actions/git-user-config@master
175+
uses: Homebrew/actions/git-user-config@main
176176
with:
177177
token: ${{ secrets[format('PERSONAL_GITHUB_TOKEN_{0}', needs.setup-credentials.outputs.author_uppercase)] }}
178178
- name: Create build folders
179179
run: mkdir -p ${{ env.MACOS_BUILD_DIR }} ${{ env.LINUX_BUILD_DIR }}
180180
- name: Download binary artifacts
181-
uses: actions/download-artifact@v4
181+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
182182
- name: Move artifacts
183183
run: |
184184
mv -f swiftlint-macos/swiftlint ${{ env.MACOS_BUILD_DIR }}

0 commit comments

Comments
 (0)