mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-22 14:46:39 +02:00
ci: secret job to check for invalid secrets
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
871b930e7a
commit
47c00d78bf
3 changed files with 28 additions and 2 deletions
|
@ -137,8 +137,7 @@ describe('getSecret', () => {
|
|||
}
|
||||
expect(true).toBe(!invalid);
|
||||
expect(secret).toEqual(`id=${exKey},src=${tmpNameSync}`);
|
||||
const secretValue = await fs.readFileSync(tmpNameSync, 'utf-8');
|
||||
expect(secretValue).toEqual(exValue);
|
||||
expect(fs.readFileSync(tmpNameSync, 'utf-8')).toEqual(exValue);
|
||||
} catch (err) {
|
||||
// eslint-disable-next-line jest/no-conditional-expect
|
||||
expect(true).toBe(invalid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue