@@ -20,11 +20,13 @@ export default async function () {
2020 ) ;
2121 const repoWithOwner = core . getInput ( "repository" , { required : true } ) ;
2222 const token = core . getInput ( "token" , { required : true } ) ;
23+ const screenshotRepo = core . getInput ( "screenshot_repo" , { required : false } ) || repoWithOwner ;
2324 const cachedFilings : ( ResolvedFiling | RepeatedFiling ) [ ] = JSON . parse (
2425 core . getInput ( "cached_filings" , { required : false } ) || "[]"
2526 ) ;
2627 core . debug ( `Input: 'findings: ${ JSON . stringify ( findings ) } '` ) ;
2728 core . debug ( `Input: 'repository: ${ repoWithOwner } '` ) ;
29+ core . debug ( `Input: 'screenshot_repo: ${ screenshotRepo } '` ) ;
2830 core . debug ( `Input: 'cached_filings: ${ JSON . stringify ( cachedFilings ) } '` ) ;
2931
3032 const octokit = new OctokitWithThrottling ( {
@@ -61,7 +63,7 @@ export default async function () {
6163 filing . issue . state = "closed" ;
6264 } else if ( isNewFiling ( filing ) ) {
6365 // Open a new issue for the filing
64- response = await openIssue ( octokit , repoWithOwner , filing . findings [ 0 ] ) ;
66+ response = await openIssue ( octokit , repoWithOwner , filing . findings [ 0 ] , screenshotRepo ) ;
6567 ( filing as any ) . issue = { state : "open" } as Issue ;
6668 } else if ( isRepeatedFiling ( filing ) ) {
6769 // Reopen the filing's issue (if necessary) and update the body with the latest finding
@@ -70,6 +72,7 @@ export default async function () {
7072 new Issue ( filing . issue ) ,
7173 filing . findings [ 0 ] ,
7274 repoWithOwner ,
75+ screenshotRepo ,
7376 ) ;
7477 filing . issue . state = "reopened" ;
7578 }
0 commit comments