Skip to content

Commit ea32f30

Browse files
committed
Rename to FulcioSigstoreOidExtensions from upstream library
1 parent 4753449 commit ea32f30

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/SelfManage/Verify/FallbackVerificationUsingOpenSsl.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
use Php\Pie\SelfManage\Update\ReleaseMetadata;
99
use Php\Pie\Util\Emoji;
1010
use Symfony\Component\Console\Output\OutputInterface;
11-
use ThePhpFoundation\Attestation\Extension;
1211
use ThePhpFoundation\Attestation\FilenameWithChecksum;
12+
use ThePhpFoundation\Attestation\FulcioSigstoreOidExtensions;
1313
use ThePhpFoundation\Attestation\Verification\Exception\FailedToVerifyArtifact;
1414
use ThePhpFoundation\Attestation\Verification\VerifyAttestation;
1515

@@ -20,9 +20,9 @@ final class FallbackVerificationUsingOpenSsl implements VerifyPiePhar
2020
{
2121
/** @link https://github.com/sigstore/fulcio/blob/main/docs/oid-info.md#136141572641--fulcio */
2222
private const ATTESTATION_CERTIFICATE_EXPECTED_EXTENSION_VALUES = [
23-
Extension::ISSUER_V2 => 'https://token.actions.githubusercontent.com',
24-
Extension::SOURCE_REPOSITORY_URI => 'https://github.com/php/pie',
25-
Extension::SOURCE_REPOSITORY_OWNER_URI => 'https://github.com/php',
23+
FulcioSigstoreOidExtensions::ISSUER_V2 => 'https://token.actions.githubusercontent.com',
24+
FulcioSigstoreOidExtensions::SOURCE_REPOSITORY_URI => 'https://github.com/php/pie',
25+
FulcioSigstoreOidExtensions::SOURCE_REPOSITORY_OWNER_URI => 'https://github.com/php',
2626
];
2727

2828
private const ORGANISATION = 'php';

src/SelfManage/Verify/GithubCliAttestationVerification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/** @internal This is not public API for PIE, so should not be depended upon unless you accept the risk of BC breaks */
2020
final class GithubCliAttestationVerification implements VerifyPiePhar
2121
{
22-
private const GH_CLI_NAME = 'ghx';
22+
private const GH_CLI_NAME = 'gh';
2323
private const GH_ATTESTATION_COMMAND = 'attestation';
2424
private const GH_VERIFICATION_TIMEOUT = 30;
2525

0 commit comments

Comments
 (0)