mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-16 14:27:10 +01:00
Pass auth token to got request
This commit is contained in:
parent
52024f70c3
commit
8819b4b3d4
5 changed files with 36 additions and 21 deletions
|
|
@ -19,7 +19,8 @@ export class ArtifactProvider implements InputProvider {
|
|||
readonly name: string,
|
||||
readonly pattern: string[],
|
||||
readonly sha: string,
|
||||
readonly runId: number
|
||||
readonly runId: number,
|
||||
readonly token: string
|
||||
) {
|
||||
if (this.artifact.startsWith('/')) {
|
||||
const endIndex = this.artifact.lastIndexOf('/')
|
||||
|
|
@ -66,7 +67,7 @@ export class ArtifactProvider implements InputProvider {
|
|||
}
|
||||
|
||||
for (const art of artifacts) {
|
||||
await downloadArtifact(this.octokit, art.id, art.name)
|
||||
await downloadArtifact(this.octokit, art.id, art.name, this.token)
|
||||
const reportName = this.getReportName(art.name)
|
||||
const files: FileContent[] = []
|
||||
const zip = new Zip(art.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue