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
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.
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