Use the Actions artifacts client to avoid needing the actions-read permission

This commit is contained in:
James M. Greene
2023-12-20 10:56:51 -06:00
parent f33f41b675
commit 81251b551f
7 changed files with 100228 additions and 1106 deletions
+1 -5
View File
@@ -63,11 +63,7 @@ class Deployment {
core.debug(`Action ID: ${this.actionsId}`)
core.debug(`Actions Workflow Run ID: ${this.workflowRun}`)
const artifactData = await getArtifactMetadata({
githubToken: this.githubToken,
runId: this.workflowRun,
artifactName: this.artifactName
})
const artifactData = await getArtifactMetadata({ artifactName: this.artifactName })
if (artifactData?.size > ONE_GIGABYTE) {
core.warning(