Skip to content

Commit

Permalink
Merge pull request #19 from inpsyde/fix-expired-pre-compiled-artifacts
Browse files Browse the repository at this point in the history
Prevent loading expired artifacts
  • Loading branch information
gmazzap authored Mar 5, 2024
2 parents 0e723e0 + c6af642 commit 29c6a66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/PreCompilation/GithubActionArtifactAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ private function retrieveArchiveUrl(
if (!is_array($artifactData)) {
continue;
}

if (!empty($artifactData['expired'])) {
continue;
}

$name = $artifactData['name'] ?? null;
$url = $name ? ($artifactData['archive_download_url'] ?? null) : null;
if (($name === $artifactName) && $url && filter_var($url, FILTER_VALIDATE_URL)) {
Expand Down

0 comments on commit 29c6a66

Please sign in to comment.