Skip to content

Commit 0cfc771

Browse files
Merge pull request #5333 from Shopify/security-code-scanner-workflow
Add workflow for Security Code Scanner
2 parents 4d1c679 + 4f2848f commit 0cfc771

File tree

9 files changed

+50
-35
lines changed

9 files changed

+50
-35
lines changed

.github/workflows/changelog-reminder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
pull_request:
3-
types: [opened, synchronize, reopened, ready_for_review]
4-
paths: ['packages/*/src/**']
3+
types: [ opened, synchronize, reopened, ready_for_review ]
4+
paths: [ 'packages/*/src/**' ]
55
name: Changelog Reminder
66
jobs:
77
remind:

.github/workflows/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
timeout-minutes: 30
2020
strategy:
2121
matrix:
22-
os: ['ubuntu-latest']
23-
node: ['18.20.3']
22+
os: [ 'ubuntu-latest' ]
23+
node: [ '18.20.3' ]
2424
steps:
2525
- uses: actions/checkout@v3
2626
name: Checkout [main]

.github/workflows/cla.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
)
1818
|| (github.event.pull_request && !github.event.pull_request.merged)
1919
steps:
20-
- uses: Shopify/shopify-cla-action@c6bc827f3c22da647ed72a556b0b30b8641786eb # pin@v1
20+
- uses: Shopify/shopify-cla-action@9938f4b43524d1cfa7471ce9a803edf226697284 # pin@v1
2121
with:
2222
github-token: ${{ secrets.GITHUB_TOKEN }}
2323
cla-token: ${{ secrets.CLA_TOKEN }}

.github/workflows/pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ name: Build and Deploy GitHub Pages Site
22

33
on:
44
push:
5-
branches: ["main"]
5+
branches: [ "main" ]
66
paths:
77
- packages/cli-kit/package.json
88
- "docs/**"
99

1010
workflow_dispatch:
1111

12-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
12+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1313
permissions:
1414
contents: read
1515
pages: write
@@ -44,7 +44,7 @@ jobs:
4444
uses: actions/jekyll-build-pages@v1
4545
with:
4646
source: ./docs
47-
destination: ./docs/_site
47+
destination: ./docs/_site
4848
- name: Upload artifact
4949
uses: actions/upload-pages-artifact@v3
5050
with:
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: 'Shopify Security Code Scanner'
2+
3+
on: [ push ]
4+
5+
jobs:
6+
Security-Code-Scanner:
7+
uses: shopify/security-code-scanner/.github/workflows/main.yml@5f7400975eed0698f96a6f718438353ae643a9d0 # pin@main
8+
secrets:
9+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/shopify-cli.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ on:
3838
pull_request:
3939
merge_group:
4040

41+
4142
concurrency:
4243
group: shopify-cli-${{ github.head_ref || github.run_id }}
4344
cancel-in-progress: true
@@ -59,8 +60,8 @@ jobs:
5960
timeout-minutes: 30
6061
strategy:
6162
matrix:
62-
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
63-
node: ['18.20.3', '20.14.0', '22.2.0']
63+
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
64+
node: [ '18.20.3', '20.14.0', '22.2.0' ]
6465
steps:
6566
- uses: actions/checkout@v3
6667
name: Checkout [${{ github.ref_name }}]
@@ -112,9 +113,9 @@ jobs:
112113
timeout-minutes: 30
113114
strategy:
114115
matrix:
115-
os: ['ubuntu-latest']
116-
node: ['18.20.3']
117-
target: ['build', 'type-check']
116+
os: [ 'ubuntu-latest' ]
117+
node: [ '18.20.3' ]
118+
target: [ 'build', 'type-check' ]
118119
steps:
119120
- uses: actions/checkout@v3
120121
with:
@@ -135,8 +136,8 @@ jobs:
135136
timeout-minutes: 30
136137
strategy:
137138
matrix:
138-
os: ['ubuntu-latest']
139-
node: ['18.20.3']
139+
os: [ 'ubuntu-latest' ]
140+
node: [ '18.20.3' ]
140141
steps:
141142
- uses: actions/checkout@v3
142143
with:
@@ -163,8 +164,8 @@ jobs:
163164
timeout-minutes: 30
164165
strategy:
165166
matrix:
166-
os: ['ubuntu-latest']
167-
node: ['18.20.3']
167+
os: [ 'ubuntu-latest' ]
168+
node: [ '18.20.3' ]
168169
steps:
169170
- uses: actions/checkout@v3
170171
with:
@@ -187,8 +188,8 @@ jobs:
187188
timeout-minutes: 30
188189
strategy:
189190
matrix:
190-
os: ['ubuntu-latest']
191-
node: ['18.20.3']
191+
os: [ 'ubuntu-latest' ]
192+
node: [ '18.20.3' ]
192193
steps:
193194
- uses: actions/checkout@v3
194195
with:
@@ -200,7 +201,7 @@ jobs:
200201
with:
201202
node-version: ${{ matrix.node }}
202203
- name: Post the knip results
203-
uses: codex-/knip-reporter@1ccefdf649b847793412fbfba286dc0b05defc1e # pin@v2
204+
uses: codex-/knip-reporter@f717532b6707d95de06b9bb2eb8ece46393f018f # pin@v2
204205
with:
205206
verbose: true
206207

@@ -211,8 +212,8 @@ jobs:
211212
timeout-minutes: 30
212213
strategy:
213214
matrix:
214-
os: ['macos-latest'] # Codegen uses a find command that needs to work on CI and macOS; using the same env keeps this simple
215-
node: ['18.20.3']
215+
os: [ 'macos-latest' ] # Codegen uses a find command that needs to work on CI and macOS; using the same env keeps this simple
216+
node: [ '18.20.3' ]
216217
steps:
217218
- uses: actions/checkout@v3
218219
with:
@@ -271,8 +272,8 @@ jobs:
271272
timeout-minutes: 30
272273
strategy:
273274
matrix:
274-
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
275-
node: ['18.20.3', '20.14.0', '22.2.0']
275+
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest' ]
276+
node: [ '18.20.3', '20.14.0', '22.2.0' ]
276277
steps:
277278
- uses: actions/checkout@v3
278279
with:
@@ -293,8 +294,8 @@ jobs:
293294
timeout-minutes: 30
294295
strategy:
295296
matrix:
296-
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
297-
node: ['18.20.3']
297+
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ]
298+
node: [ '18.20.3' ]
298299
steps:
299300
- uses: actions/checkout@v3
300301
with:
@@ -317,8 +318,8 @@ jobs:
317318
timeout-minutes: 30
318319
strategy:
319320
matrix:
320-
os: ['ubuntu-latest']
321-
node: ['18.20.3']
321+
os: [ 'ubuntu-latest' ]
322+
node: [ '18.20.3' ]
322323
steps:
323324
- uses: actions/checkout@v3
324325
with:
@@ -340,7 +341,6 @@ jobs:
340341
with:
341342
base-branch-name: '${{ github.base_ref }}'
342343

343-
344344
manually-triggered:
345345
name: '[Manual] Test with Node ${{ inputs.node-version }} in ${{ inputs.os }}'
346346
runs-on: ${{ inputs.os }}
@@ -363,6 +363,6 @@ jobs:
363363
run: pnpm test:features --output-style=stream
364364
- name: Setup tmate session
365365
if: ${{ failure() && inputs.debug-enabled }}
366-
uses: mxschmitt/action-tmate@1005f9c9db5f1b055a495e72c6e589764984baf6 # pin@v3
366+
uses: mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48 # pin@v3
367367
with:
368368
limit-access-to-actor: true

.github/workflows/snapit.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,18 @@ jobs:
2626
- name: Force snapshot changeset
2727
run: "mv .changeset/force-snapshot-build.md.ignore .changeset/force-snapshot-build.md"
2828
- name: Create snapshot version
29-
uses: Shopify/snapit@0c0d2dd62c9b0c94b7d03e1f54e72f18548e7752 # pin to a specific commit
29+
uses: Shopify/snapit@938148c6c89d82cf32e0a377f8f7c0bff39bc989 # pin@main
3030
with:
3131
global_install: 'true'
3232
github_comment_included_packages: '@shopify/cli'
33-
custom_message_suffix: "\n> After installing, validate the version by running just `shopify` in your terminal\n> If the versions don't match, you might have multiple global instances installed.\n> Use `which shopify` to find out which one you are running and uninstall it."
33+
custom_message_suffix: "
34+
35+
> After installing, validate the version by running just `shopify` in your terminal
36+
37+
> If the versions don't match, you might have multiple global instances installed.
38+
39+
> Use `which shopify` to find out which one you are running and uninstall it."
3440
build_script: "pnpm nx run-many --target=bundle --all --skip-nx-cache --output-style=stream"
3541
env:
3642
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3743
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38-

.github/workflows/update-graphql-deps.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ name: Update GraphQL Dependencies
33
on:
44
schedule:
55
- cron: '13 0,6,12,18 * * *' # Runs at 00:13, 06:13, 12:13, and 18:13 UTC
6-
workflow_dispatch: # Allows manual triggering from the GitHub UI
6+
workflow_dispatch:
7+
# Allows manual triggering from the GitHub UI
78

89
env:
910
DEBUG: '1'

.github/workflows/workflow-cleaner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Delete workflow runs
51-
uses: Mattraks/delete-workflow-runs@5ebc537fc6b4f5c1634865f0030271fb6776b28d # pin@v2
51+
uses: Mattraks/delete-workflow-runs@4c9f24749b7996562658e3d6e10662489e22caca # pin@v2
5252
with:
5353
token: ${{ github.token }}
5454
repository: ${{ github.repository }}

0 commit comments

Comments
 (0)