Skip to content

Bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#580) #68

Bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#580)

Bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#580) #68

Triggered via push October 16, 2024 12:34
Status Success
Total duration 6m 56s
Artifacts

infection.yml

on: push
0️⃣ Mutation Testing
6m 47s
0️⃣ Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Compiler/AlgorithmCompilerPass.php#L19
Escaped Mutant for Mutator "LogicalNot": @@ @@ #[Override] public function process(ContainerBuilder $container): void { - if (!$container->hasDefinition(AlgorithmManagerFactory::class)) { + if ($container->hasDefinition(AlgorithmManagerFactory::class)) { return; } $definition = $container->getDefinition(AlgorithmManagerFactory::class);
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Compiler/AlgorithmCompilerPass.php#L26
Escaped Mutant for Mutator "Foreach_": @@ @@ } $definition = $container->getDefinition(AlgorithmManagerFactory::class); $taggedAlgorithmServices = $container->findTaggedServiceIds('jose.algorithm'); - foreach ($taggedAlgorithmServices as $id => $tags) { + foreach ([] as $id => $tags) { foreach ($tags as $attributes) { if (!isset($attributes['alias'])) { throw new InvalidArgumentException(sprintf('The algorithm "%s" does not have any "alias" attribute.', $id));
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Compiler/AlgorithmCompilerPass.php#L27
Escaped Mutant for Mutator "Foreach_": @@ @@ $definition = $container->getDefinition(AlgorithmManagerFactory::class); $taggedAlgorithmServices = $container->findTaggedServiceIds('jose.algorithm'); foreach ($taggedAlgorithmServices as $id => $tags) { - foreach ($tags as $attributes) { + foreach ([] as $attributes) { if (!isset($attributes['alias'])) { throw new InvalidArgumentException(sprintf('The algorithm "%s" does not have any "alias" attribute.', $id)); }
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Source/KeyManagement/JWKSetSource.php#L59
Escaped Mutant for Mutator "IncrementInteger": @@ @@ #[Override] public function getNodeDefinition(NodeDefinition $node): void { - $sourceNodeBuilder = $node->children()->arrayNode('key_sets')->treatFalseLike([])->treatNullLike([])->useAttributeAsKey('name')->arrayPrototype()->validate()->ifTrue(fn($config): bool => count($config) !== 1)->thenInvalid('One key set type must be set.')->end()->children(); + $sourceNodeBuilder = $node->children()->arrayNode('key_sets')->treatFalseLike([])->treatNullLike([])->useAttributeAsKey('name')->arrayPrototype()->validate()->ifTrue(fn($config): bool => count($config) !== 2)->thenInvalid('One key set type must be set.')->end()->children(); foreach ($this->getJWKSetSources() as $name => $source) { $sourceNode = $sourceNodeBuilder->arrayNode($name)->canBeUnset(); $source->addConfiguration($sourceNode);
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Source/KeyManagement/JWKSetSource.php#L90
Escaped Mutant for Mutator "TrueValue": @@ @@ $tempContainer->registerForAutoconfiguration(JWKSetSourceInterface::class)->addTag('jose.jwkset_source'); $loader = new PhpFileLoader($tempContainer, new FileLocator(__DIR__ . '/../../../Resources/config')); $loader->load('jwkset_sources.php'); - $tempContainer->compile(true); + $tempContainer->compile(false); $services = $tempContainer->findTaggedServiceIds('jose.jwkset_source'); $jwkset_sources = []; foreach (array_keys($services) as $id) {
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Source/KeyManagement/JWKSetSource.php#L96
Escaped Mutant for Mutator "InstanceOf_": @@ @@ $jwkset_sources = []; foreach (array_keys($services) as $id) { $factory = $tempContainer->get($id); - if (!$factory instanceof JWKSetSourceInterface) { + if (!true) { throw new InvalidArgumentException('Invalid object'); } $jwkset_sources[str_replace('-', '_', $factory->getKeySet())] = $factory;
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Source/KeyManagement/JWKSetSource.php#L99
Escaped Mutant for Mutator "UnwrapStrReplace": @@ @@ if (!$factory instanceof JWKSetSourceInterface) { throw new InvalidArgumentException('Invalid object'); } - $jwkset_sources[str_replace('-', '_', $factory->getKeySet())] = $factory; + $jwkset_sources[$factory->getKeySet()] = $factory; } return $this->jwkset_sources = $jwkset_sources; } }
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Source/KeyManagement/JWKSetSource/JKU.php#L21
Escaped Mutant for Mutator "PublicVisibility": @@ @@ * @param array<string, mixed> $config */ #[Override] - public function createDefinition(ContainerBuilder $container, array $config): Definition + protected function createDefinition(ContainerBuilder $container, array $config): Definition { $definition = new Definition(JWKSet::class); $definition->setFactory([new Reference(JKUFactory::class), 'loadFromUrl']);
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Source/KeyManagement/JWKSetSource/JKU.php#L25
Escaped Mutant for Mutator "ArrayItemRemoval": @@ @@ public function createDefinition(ContainerBuilder $container, array $config): Definition { $definition = new Definition(JWKSet::class); - $definition->setFactory([new Reference(JKUFactory::class), 'loadFromUrl']); + $definition->setFactory(['loadFromUrl']); $definition->setArguments([$config['url'], $config['headers']]); $definition->addTag('jose.jwkset'); return $definition;
0️⃣ Mutation Testing: src/Bundle/DependencyInjection/Source/KeyManagement/JWKSetSource/JKU.php#L25
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ public function createDefinition(ContainerBuilder $container, array $config): Definition { $definition = new Definition(JWKSet::class); - $definition->setFactory([new Reference(JKUFactory::class), 'loadFromUrl']); + $definition->setArguments([$config['url'], $config['headers']]); $definition->addTag('jose.jwkset'); return $definition;