File tree 8 files changed +166
-50
lines changed
8 files changed +166
-50
lines changed Original file line number Diff line number Diff line change 1
- name : Build and lint
1
+ ---
2
+ name : Build
2
3
3
4
on :
4
5
workflow_call :
12
13
SEGMENT_ANALYTICS_KEY : ${{ secrets.SEGMENT_ANALYTICS_KEY }}
13
14
LD_CLIENT_ID : ${{ secrets.LD_CLIENT_ID }}
14
15
16
+
15
17
jobs :
16
18
build :
17
19
name : Build
18
20
runs-on : ubuntu-latest
19
- needs :
20
- - prepare
21
+ permissions :
22
+ contents : read
21
23
steps :
22
- - uses : actions/checkout@v3
24
+ - uses : actions/checkout@v4
23
25
24
26
- name : Build
25
27
uses : ConsenSys/docs-gha/build@main
26
28
with :
27
29
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
-
29
-
30
- lint :
31
- name : Lint
32
- runs-on : ubuntu-latest
33
- needs :
34
- - prepare
35
- steps :
36
- - uses : actions/checkout@v3
37
-
38
- - name : Lint
39
- uses : ConsenSys/docs-gha/lint@main
40
- with :
41
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
-
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Check file name case
3
+
4
+ on :
5
+ workflow_call :
6
+ secrets :
7
+ SEGMENT_ANALYTICS_KEY :
8
+ required : true
9
+ LD_CLIENT_ID :
10
+ required : true
11
+
12
+ env :
13
+ SEGMENT_ANALYTICS_KEY : ${{ secrets.SEGMENT_ANALYTICS_KEY }}
14
+ LD_CLIENT_ID : ${{ secrets.LD_CLIENT_ID }}
15
+
16
+
17
+ jobs :
18
+ case :
19
+ name : Check for case being inconsistent
20
+ runs-on : ubuntu-latest
21
+ strategy :
22
+ matrix :
23
+ folder : ["docs"]
24
+ permissions :
25
+ contents : read
26
+ steps :
27
+ - uses : actions/checkout@v4
28
+
29
+ - name : Case check action
30
+ uses : ConsenSys/docs-gha/case@main
31
+ with :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
+ DOC_DIR : ${{ matrix.folder }}
34
+ SKIP_TEST : true
Original file line number Diff line number Diff line change
1
+ name : ' Dependency Review'
2
+
3
+ version : 2
4
+ updates :
5
+ - package-ecosystem : " npm"
6
+ directory : " /"
7
+ schedule :
8
+ interval : " weekly"
9
+ day : " sunday"
10
+ assignees :
11
+ - " protocol-galileo"
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Check file name case
3
+
4
+ on :
5
+ pull_request :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ case :
11
+ name : Check for licences not being allowed
12
+ runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ folder : ["docs"]
16
+ permissions :
17
+ contents : read
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+
21
+ - name : Dependency review
22
+ uses : ConsenSys/docs-gha/dependency-review@main
23
+ with :
24
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Check for lint, spelling and link errors
3
+
4
+ on :
5
+ workflow_call :
6
+ secrets :
7
+ SEGMENT_ANALYTICS_KEY :
8
+ required : true
9
+ LD_CLIENT_ID :
10
+ required : true
11
+
12
+ env :
13
+ SEGMENT_ANALYTICS_KEY : ${{ secrets.SEGMENT_ANALYTICS_KEY }}
14
+ LD_CLIENT_ID : ${{ secrets.LD_CLIENT_ID }}
15
+
16
+
17
+ jobs :
18
+ lint :
19
+ name : Lint Code Base, Spelling, Link Check
20
+ runs-on : ubuntu-latest
21
+ permissions :
22
+ contents : read
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+
26
+ - name : Lint
27
+ uses : ConsenSys/docs-gha/lint@main
28
+ with :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30
+
31
+ linkCheck :
32
+ name : Link Checking
33
+ runs-on : ubuntu-latest
34
+ strategy :
35
+ matrix :
36
+ file-extensions : [".md", ".mdx"]
37
+ steps :
38
+ - uses : actions/checkout@v4
39
+ - name : LinkCheck
40
+ uses : ConsenSys/docs-gha/linkcheck@main
41
+ with :
42
+ FILE_EXTENSION : ${{ matrix.file-extensions }}
Original file line number Diff line number Diff line change 10
10
name : Check workflows
11
11
runs-on : ubuntu-latest
12
12
steps :
13
- - uses : actions/checkout@v3
13
+ - uses : actions/checkout@v4
14
14
- name : Download actionlint
15
15
id : download-actionlint
16
16
run : bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/7fdc9630cc360ea1a469eed64ac6d78caeda1234/scripts/download-actionlint.bash) 1.6.22
@@ -19,19 +19,36 @@ jobs:
19
19
run : ${{ steps.download-actionlint.outputs.executable }} -color
20
20
shell : bash
21
21
22
- build-lint :
23
- name : Build and lint
24
- uses : ./.github/workflows/build-lint .yml
22
+ build :
23
+ name : Build
24
+ uses : ./.github/workflows/build.yml
25
25
secrets :
26
26
SEGMENT_ANALYTICS_KEY : ${{ secrets.SEGMENT_ANALYTICS_DEV_KEY }}
27
27
LD_CLIENT_ID : ${{ secrets.LD_CLIENT_ID }}
28
28
29
+ lint :
30
+ name : Lint
31
+ uses : ./.github/workflows/lint.yml
32
+ secrets :
33
+ SEGMENT_ANALYTICS_KEY : ${{ secrets.SEGMENT_ANALYTICS_DEV_KEY }}
34
+ LD_CLIENT_ID : ${{ secrets.LD_CLIENT_ID }}
35
+
36
+ case :
37
+ name : Case
38
+ uses : ./.github/workflows/case.yml
39
+ secrets :
40
+ SEGMENT_ANALYTICS_KEY : ${{ secrets.SEGMENT_ANALYTICS_DEV_KEY }}
41
+ LD_CLIENT_ID : ${{ secrets.LD_CLIENT_ID }}
42
+
43
+
29
44
all-jobs-completed :
30
45
name : All jobs completed
31
46
runs-on : ubuntu-latest
32
47
needs :
33
48
- check-workflows
34
- - build-lint
49
+ - build
50
+ - lint
51
+ - case
35
52
outputs :
36
53
PASSED : ${{ steps.set-output.outputs.PASSED }}
37
54
steps :
Original file line number Diff line number Diff line change @@ -2,9 +2,11 @@ name: 'MetaMask Security Code Scanner'
2
2
3
3
on :
4
4
push :
5
- branches : ['main']
5
+ branches :
6
+ - ' main'
6
7
pull_request :
7
- branches : ['main']
8
+ branches :
9
+ - ' main'
8
10
9
11
jobs :
10
12
run-security-scan :
@@ -14,30 +16,11 @@ jobs:
14
16
contents : read
15
17
security-events : write
16
18
steps :
19
+ - uses : actions/checkout@v4
17
20
- name : MetaMask Security Code Scanner
18
- uses : MetaMask/Security-Code-Scanner @main
21
+ uses : ConsenSys/docs-gha/mm-security-scanner @main
19
22
with :
20
23
repo : ${{ github.repository }}
21
- paths_ignored : |
22
- .storybook/
23
- '**/__snapshots__/'
24
- '**/*.snap'
25
- '**/*.stories.js'
26
- '**/*.stories.tsx'
27
- '**/*.test.browser.ts*'
28
- '**/*.test.js*'
29
- '**/*.test.ts*'
30
- '**/fixtures/'
31
- '**/jest.config.js'
32
- '**/jest.environment.js'
33
- '**/mocks/'
34
- '**/test*/'
35
- docs/
36
- e2e/
37
- merged-packages/
38
- node_modules
39
- storybook/
40
- test*/
41
- rules_excluded : example
42
- project_metrics_token : ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }}
43
- slack_webhook : ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
24
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25
+ SECURITY_SCAN_METRICS_TOKEN : ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }}
26
+ APPSEC_BOT_SLACK_WEBHOOK : ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }}
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Trivy
3
+
4
+ on :
5
+ pull_request :
6
+ branches :
7
+ - main
8
+
9
+ jobs :
10
+ trivy :
11
+ name : Run trivy scanner
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - name : Trivy
16
+ uses : ConsenSys/docs-gha/trivy@main
17
+ with :
18
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments