diff --git a/CHANGELOG.md b/CHANGELOG.md index a48a0d7..1d7b632 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- A guard now keeps literal credentials out of the tests, and every credential generated with + `TestCredentials` named with a single word, so secret scanning has nothing to report. + `laranail/package-tools` is raised to `^0.1.10`, which ships the purpose check. + - Dropped the `vcs` repositories for `laranail/console`: nothing in this package's `require` or `require-dev` closure installs it (checked with `composer why` after a fresh `composer update`). diff --git a/composer.json b/composer.json index 6e7aaff..b906d20 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "php": "^8.4.1 || ^8.5", "illuminate/contracts": "^13.0", "illuminate/support": "^13.0", - "laranail/package-tools": "^0.1" + "laranail/package-tools": "^0.1.10" }, "require-dev": { "larastan/larastan": "^3.0", diff --git a/tests/Architecture/NoLiteralCredentialsTest.php b/tests/Architecture/NoLiteralCredentialsTest.php new file mode 100644 index 0000000..f2308d7 --- /dev/null +++ b/tests/Architecture/NoLiteralCredentialsTest.php @@ -0,0 +1,21 @@ +assertNoLiteralCredentialsIn([dirname(__DIR__)], minFiles: 4); + expect(true)->toBeTrue(); +}); + +it('names every generated credential with a single word', function (): void { + $this->assertCredentialPurposesAreWordsIn([dirname(__DIR__)], minFiles: 4); + expect(true)->toBeTrue(); +});