Bot releases are visible (Hide)
Published by github-actions[bot] about 1 year ago
This release includes various fixes for Windows.
Full Changelog: https://github.com/secretlint/secretlint/compare/v7.0.3...v7.0.4
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/secretlint/secretlint/compare/v7.0.2...7.0.3
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/secretlint/secretlint/compare/v7.0.1...7.0.2
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/secretlint/secretlint/compare/v7.0.0...7.0.1
Published by github-actions[bot] over 1 year ago
This release convert almost secretlint packages to Pure ESM 🎉
0
: Linting succeeded, no errors found1
: Linting failed, errors found2
: Unexpected error occurred, fatal errorimport("@secretlint/core")
.@secretlint/types
to dual package
@secretlint/types
from both CJS and ESM.@secretlint/tester
is migrated to ESM, But we can load it using dynamic import from CJS
@secretlint/tester
uses node:test
instead of MochasnapshotDirectory
option.It means that you can still write your rule in CommonJS.
You can migrate your snapshot testing code to secretlint v7 by following:
CommonJS Edition:
- import { snapshot } from "@secretlint/tester";
import path from "path";
import { creator as rule } from "../src/index";
+ import test from "node:test";
- describe("@secretlint/secretlint-rule-example", () => {
+ test("@secretlint/secretlint-rule-example", async (t) => {
+ const snapshot = (await import("@secretlint/tester")).snapshot;
- snapshot({
+ await snapshot({
defaultConfig: {
rules: [
{
id: "@secretlint/secretlint-rule-preset-canary",
rule,
rules: [],
options: {},
},
],
},
updateSnapshot: !!process.env.UPDATE_SNAPSHOT,
snapshotDirectory: path.join(__dirname, "snapshots"),
}).forEach((name, test) => {
- it(name, async function () {
+ return it(name, async (context) => {
const status = await test();
if (status === "skip") {
- this.skip();
+ context.skip();
}
});
});
});
Of course, you can write test in ESM and rule.
import test from "node:test";
import { snapshot } "@secretlint/teter";
import { creator as rule } from "../src/index.js";
test("@secretlint/secretlint-rule-example", async (t) => {
return snapshot({
defaultConfig: {
rules: [
{
id: "@secretlint/secretlint-rule-example",
rule,
options: {},
},
],
},
updateSnapshot: !!process.env.UPDATE_SNAPSHOT,
snapshotDirectory: new URL("snapshots", import.meta.url),
}).forEach((name, test) => {
return t.test(name, async (context) => {
const status = await test();
if (status === "skip") {
context.skip();
}
});
});
});
And run tests via Node.js Test runner
$ node --test test/index.test.js
# or
$ node --loader ts-node/esm --test test/index.test.ts
For more details, see https://github.com/secretlint/secretlint/blob/master/docs/secretlint-rule.md and Node.js Test runner
Full Changelog: https://github.com/secretlint/secretlint/compare/v6.2.4...7.0.0
Published by github-actions[bot] over 1 year ago
It will resolve vulnerability issues with semver.
Full Changelog: https://github.com/secretlint/secretlint/compare/v6.2.3...6.2.4
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/secretlint/secretlint/compare/v6.2.2...6.2.3
Published by github-actions[bot] over 1 year ago
process.platform
from browser bundle by @azu in https://github.com/secretlint/secretlint/pull/408
Full Changelog: https://github.com/secretlint/secretlint/compare/v6.2.1...6.2.2
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/secretlint/secretlint/compare/v6.2.0...6.2.1
Published by github-actions[bot] over 1 year ago
Full Changelog: https://github.com/secretlint/secretlint/compare/v6.1.0...6.2.0
Published by github-actions[bot] over 1 year ago
Docker Image includes @secretlint/secretlint-rule-pattern by default.
Full Changelog: https://github.com/secretlint/secretlint/compare/v6.0.2...6.1.0
Published by github-actions[bot] almost 2 years ago
This change only affect to rule creator.
This change add "sourceContent" and "sourceContentType" to secretlint result
{
"filePath": "[SNAPSHOT]/ng.secret/input.txt",
+ "sourceContent": "THIS IS SECRET.",
+ "sourceContentType": "text",
"messages": []
}
Secretlint no longer tests on Node.js 14.
Supported Versions:
secretlint
does not have --fix
flag, However you can use --format=mask-result --output input.file
instead of it.
For example, you can mask the secrets of .zsh_history
file.
$ npx @secretlint/quick-start .zsh_history --format=mask-result
# output masked result
You can overwrite .zsh_history
file with masked result.
$ npx @secretlint/quick-start .zsh_history --format=mask-result --output .zsh_history
📝 It will mitigate software supply chain attack like PyTorch-nightly's torchtriton issue.
Published by github-actions[bot] almost 2 years ago
GitHub introduced new personal access tokens system (it's still in beta as of now).
Secretlint can now detect the new fine-grained personal access tokens.
Published by github-actions[bot] over 2 years ago
Full Changelog: https://github.com/secretlint/secretlint/compare/v5.2.1...v5.2.2
Published by github-actions[bot] over 2 years ago
Full Changelog: https://github.com/secretlint/secretlint/compare/v5.2.0...v5.2.1
Published by github-actions[bot] over 2 years ago
Now, Secretlint Docker Image supports linux/amd64 and linux/arm64 architectures.
This release does not change secretlint it-self.
📝 v5.1.3 is re-publish version of v5.1.2.