6060 default : ' '
6161
6262env :
63- MONOREPO_PATH : .
63+ MONOREPO_PATH : .security-scanner
6464
6565jobs :
6666 # Detect languages and create matrix
7575 with :
7676 repository : MetaMask/action-security-code-scanner
7777 ref : ${{ inputs.scanner-ref }}
78+ path : ${{ env.MONOREPO_PATH }}
7879
7980 - name : Checkout target repository
8081 uses : actions/checkout@v4
8485
8586 - name : Detect languages and create matrix
8687 id : detect-languages
87- uses : ./packages/language-detector
88+ uses : ./${{ env.MONOREPO_PATH }}/ packages/language-detector
8889 with :
8990 repo : ${{ inputs.repo }}
9091 languages_config : ${{ inputs.languages-config }}
@@ -108,6 +109,7 @@ jobs:
108109 with :
109110 repository : MetaMask/action-security-code-scanner
110111 ref : ${{ inputs.scanner-ref }}
112+ path : ${{ env.MONOREPO_PATH }}
111113
112114 - name : Checkout target repository
113115 uses : actions/checkout@v4
@@ -116,7 +118,7 @@ jobs:
116118 path : ${{ inputs.repo }}
117119
118120 - name : Run CodeQL Analysis
119- uses : ./packages/codeql-action
121+ uses : ./${{ env.MONOREPO_PATH }}/ packages/codeql-action
120122 with :
121123 repo : ${{ inputs.repo }}
122124 language : ${{ matrix.language }}
@@ -142,6 +144,7 @@ jobs:
142144 with :
143145 repository : MetaMask/action-security-code-scanner
144146 ref : ${{ inputs.scanner-ref }}
147+ path : ${{ env.MONOREPO_PATH }}
145148
146149 - name : Checkout target repository
147150 uses : actions/checkout@v4
@@ -150,7 +153,7 @@ jobs:
150153 path : ${{ inputs.repo }}
151154
152155 - name : Run Semgrep Analysis
153- uses : ./packages/semgrep-action
156+ uses : ./${{ env.MONOREPO_PATH }}/ packages/semgrep-action
154157 with :
155158 paths_ignored : ${{ inputs.paths-ignored }}
156159
0 commit comments