diff --git a/CHANGELOG.md b/CHANGELOG.md index bc070c2..5f5891b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,9 @@ 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 keeps every generated credential's + purpose a single word, because secret scanners cannot tell a test password from a leaked one. + `laranail/package-tools`, which ships it, is now required at `^0.1.10`. - **The commands are `laranail::git-commit-checker.install` and `laranail::git-commit-checker.pre-commit-hook`**, the family's `laranail::.` shape. The hook script `install` writes calls the scoped name. A local copy of `laranail/console`'s diff --git a/composer.json b/composer.json index ab0e8f8..172edb9 100644 --- a/composer.json +++ b/composer.json @@ -44,7 +44,7 @@ "laravel/pint": "^1.30", "orchestra/testbench": "^11.1", "pestphp/pest": "^5.1", - "laranail/package-tools": "^0.1" + "laranail/package-tools": "^0.1.10" }, "extra": { "laravel": { diff --git a/tests/Architecture/NoLiteralCredentialsTest.php b/tests/Architecture/NoLiteralCredentialsTest.php new file mode 100644 index 0000000..9810473 --- /dev/null +++ b/tests/Architecture/NoLiteralCredentialsTest.php @@ -0,0 +1,22 @@ +assertNoLiteralCredentialsIn([dirname(__DIR__)], minFiles: 5); + expect(true)->toBeTrue(); +}); + +it('names every generated credential with a single word', function (): void { + $this->assertCredentialPurposesAreWordsIn([dirname(__DIR__)], minFiles: 5); + expect(true)->toBeTrue(); +});