Skip to content

Commit 1f79885

Browse files
authored
update github actions to commits (#3117)
1 parent 953ce82 commit 1f79885

File tree

6 files changed

+42
-36
lines changed

6 files changed

+42
-36
lines changed

.github/actions/setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ runs:
1414
using: composite
1515
steps:
1616
- name: Setup Node.js
17-
uses: actions/setup-node@v3
17+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
1818
with:
1919
node-version-file: .nvmrc
2020

2121
- name: Cache dependencies
2222
id: yarn-cache
23-
uses: actions/cache@v3
23+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
2424
with:
2525
path: |
2626
**/node_modules
@@ -37,7 +37,7 @@ runs:
3737

3838
- name: Download Skia Binary Artifacts
3939
if: ${{ inputs.download_skia == 'true' }}
40-
uses: dawidd6/action-download-artifact@v2
40+
uses: dawidd6/action-download-artifact@268677152d06ba59fcec7a7f0b5d961b6ccd7e1e # v2.28.0
4141
with:
4242
workflow: "build-skia.yml"
4343
repo: shopify/react-native-skia

.github/dependabot.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: weekly

.github/workflows/build-npm.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
cancel-in-progress: true
1717
steps:
1818
- name: checkout
19-
uses: actions/checkout@v3
19+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2020
with:
2121
submodules: recursive
2222

@@ -39,7 +39,7 @@ jobs:
3939
NPM_CONFIG_PROVENANCE: true
4040

4141
- name: Deploy to GitHub Pages
42-
uses: peaceiris/actions-gh-pages@v3
42+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
4343
with:
4444
github_token: ${{ secrets.GITHUB_TOKEN }}
4545
publish_dir: ./apps/docs/build

.github/workflows/build-skia.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ jobs:
55
runs-on: macos-latest-xlarge
66
steps:
77
- name: checkout
8-
uses: actions/checkout@v3
8+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
99
with:
1010
submodules: recursive
1111

1212
- name: Setup Android NDK
1313
id: setup-ndk
14-
uses: nttld/setup-ndk@v1
14+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # v1.5.0
1515
with:
1616
ndk-version: r22b
1717

@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Upload artifacts - Android arm
3636
if: github.ref == 'refs/heads/main'
37-
uses: actions/upload-artifact@v4
37+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3838
with:
3939
name: skia-android-arm
4040
path: |
@@ -49,7 +49,7 @@ jobs:
4949
5050
- name: Upload artifacts - Android arm64
5151
if: github.ref == 'refs/heads/main'
52-
uses: actions/upload-artifact@v4
52+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
5353
with:
5454
name: skia-android-arm-64
5555
path: |
@@ -64,7 +64,7 @@ jobs:
6464
6565
- name: Upload artifacts - Android x86
6666
if: github.ref == 'refs/heads/main'
67-
uses: actions/upload-artifact@v4
67+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6868
with:
6969
name: skia-android-arm-x86
7070
path: |
@@ -79,7 +79,7 @@ jobs:
7979
8080
- name: Upload artifacts - Android x64
8181
if: github.ref == 'refs/heads/main'
82-
uses: actions/upload-artifact@v4
82+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
8383
with:
8484
name: skia-android-arm-x64
8585
path: |
@@ -94,7 +94,7 @@ jobs:
9494
9595
- name: Upload artifacts - Apple xcframeworks
9696
if: github.ref == 'refs/heads/main'
97-
uses: actions/upload-artifact@v4
97+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9898
with:
9999
name: skia-apple-xcframeworks
100100
path: |

.github/workflows/ci.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2525
with:
2626
submodules: recursive
2727

@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
github_token: ${{ secrets.GITHUB_TOKEN }}
3232

33-
- uses: actions/setup-python@v1
33+
- uses: actions/setup-python@0f07f7f756721ebd886c2462646a35f78a8bc4de # v1.2.4
3434
- run: pip install cpplint
3535
- run: cpplint --linelength=230 --filter=-legal/copyright,-whitespace/indent,-whitespace/comments,-whitespace/ending_newline,-build/include_order,-runtime/references,-readability/todo,-whitespace/blank_line,-whitespace/todo,-runtime/int,-build/c++11,-whitespace/parens --exclude=package/cpp/skia --exclude=package/apple --exclude=package/android/build --exclude=package/node_modules --recursive package
3636

@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Checkout
51-
uses: actions/checkout@v3
51+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
5252
with:
5353
submodules: recursive
5454

@@ -64,7 +64,7 @@ jobs:
6464
runs-on: ubuntu-latest
6565
steps:
6666
- name: Checkout
67-
uses: actions/checkout@v3
67+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
6868
with:
6969
submodules: recursive
7070

@@ -91,7 +91,7 @@ jobs:
9191
TURBO_CACHE_DIR: .turbo/android
9292
steps:
9393
- name: Checkout
94-
uses: actions/checkout@v3
94+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
9595
with:
9696
submodules: recursive
9797

@@ -101,21 +101,21 @@ jobs:
101101
github_token: ${{ secrets.GITHUB_TOKEN }}
102102

103103
- name: Cache turborepo for Android
104-
uses: actions/cache@v3
104+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
105105
with:
106106
path: ${{ env.TURBO_CACHE_DIR }}
107107
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
108108
restore-keys: |
109109
${{ runner.os }}-turborepo-android
110110
111111
- name: Install JDK
112-
uses: actions/setup-java@v3
112+
uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
113113
with:
114114
distribution: 'zulu'
115115
java-version: '17'
116116

117117
- name: Install NDK
118-
uses: nttld/setup-ndk@v1
118+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # v1.5.0
119119
id: setup-ndk
120120
with:
121121
ndk-version: r26d
@@ -132,7 +132,7 @@ jobs:
132132
echo "sdk.dir=$ANDROID_HOME" > $GITHUB_WORKSPACE/apps/paper/android/local.properties
133133
134134
- name: Cache Gradle
135-
uses: actions/cache@v3
135+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
136136
with:
137137
path: |
138138
~/.gradle/wrapper
@@ -153,7 +153,7 @@ jobs:
153153
TURBO_CACHE_DIR: .turbo/android
154154
steps:
155155
- name: Checkout
156-
uses: actions/checkout@v3
156+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
157157
with:
158158
submodules: recursive
159159

@@ -163,21 +163,21 @@ jobs:
163163
github_token: ${{ secrets.GITHUB_TOKEN }}
164164

165165
- name: Cache turborepo for Android
166-
uses: actions/cache@v3
166+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
167167
with:
168168
path: ${{ env.TURBO_CACHE_DIR }}
169169
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }}
170170
restore-keys: |
171171
${{ runner.os }}-turborepo-android
172172
173173
- name: Install JDK
174-
uses: actions/setup-java@v3
174+
uses: actions/setup-java@17f84c3641ba7b8f6deff6309fc4c864478f5d62 # v3.14.1
175175
with:
176176
distribution: 'zulu'
177177
java-version: '17'
178178

179179
- name: Install NDK
180-
uses: nttld/setup-ndk@v1
180+
uses: nttld/setup-ndk@afb4c9964b521afb97c864b7d40b11e6911bd410 # v1.5.0
181181
id: setup-ndk
182182
with:
183183
ndk-version: r26d
@@ -195,7 +195,7 @@ jobs:
195195
echo "sdk.dir=$ANDROID_HOME" > $GITHUB_WORKSPACE/apps/fabric/android/local.properties
196196
197197
- name: Cache Gradle
198-
uses: actions/cache@v3
198+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
199199
with:
200200
path: |
201201
~/.gradle/wrapper
@@ -211,7 +211,7 @@ jobs:
211211
yarn turbo run build:android --concurrency 1 --force
212212
213213
- name: Cache apk
214-
uses: actions/cache/save@v3
214+
uses: actions/cache/save@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
215215
env:
216216
cache-name: cache-apk
217217
with:
@@ -228,7 +228,7 @@ jobs:
228228
working-directory: [apps/paper]
229229
steps:
230230
- name: checkout
231-
uses: actions/checkout@v3
231+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
232232
with:
233233
submodules: recursive
234234

@@ -239,7 +239,7 @@ jobs:
239239

240240
- name: Restore APK
241241
id: cache-apk
242-
uses: actions/cache/restore@v3
242+
uses: actions/cache/restore@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
243243
with:
244244
path: ${{ matrix.working-directory }}/android/app/build/outputs/apk/debug/app-debug.apk
245245
key: apk-${{ github.sha }}
@@ -262,7 +262,7 @@ jobs:
262262
run: E2E=true yarn start &
263263

264264
- name: Check APK existence
265-
uses: andstor/file-existence-action@v2
265+
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2.0.0
266266
with:
267267
files: ${{ matrix.working-directory }}/android/app/build/outputs/apk/debug/app-debug.apk
268268
fail: true
@@ -288,13 +288,13 @@ jobs:
288288
CI=true yarn e2e --testPathIgnorePatterns Paragraphs
289289
fi
290290
291-
- uses: actions/upload-artifact@v4
291+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
292292
if: failure()
293293
with:
294294
path: packages/skia/src/__tests__/snapshots/
295295
name: tests-snapshots-screenshots
296296

297-
- uses: actions/upload-artifact@v4
297+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
298298
if: failure()
299299
with:
300300
path: apps/docs/static/
@@ -306,7 +306,7 @@ jobs:
306306
TURBO_CACHE_DIR: .turbo/ios
307307
steps:
308308
- name: Checkout
309-
uses: actions/checkout@v3
309+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
310310
with:
311311
submodules: recursive
312312

@@ -316,7 +316,7 @@ jobs:
316316
github_token: ${{ secrets.GITHUB_TOKEN }}
317317

318318
- name: Cache turborepo for iOS
319-
uses: actions/cache@v3
319+
uses: actions/cache@2f8e54208210a422b2efd51efaa6bd6d7ca8920f # v3.4.3
320320
with:
321321
path: ${{ env.TURBO_CACHE_DIR }}
322322
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }}

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1414
with:
1515
submodules: recursive
1616

@@ -26,7 +26,7 @@ jobs:
2626
yarn build
2727
2828
- name: Deploy to GitHub Pages
29-
uses: peaceiris/actions-gh-pages@v3
29+
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
3030
with:
3131
github_token: ${{ secrets.GITHUB_TOKEN }}
3232
publish_dir: ./apps/docs/build

0 commit comments

Comments
 (0)