@runeditrun/rer 0.2.65 → 0.2.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/global/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.66
|
|
4
|
+
|
|
5
|
+
- **Seed copies pass the pin-time credential scan (#305).** Credential-shaped test fixtures in seed-vendored Base files are constructed at runtime, preserving their values and assertions. Seed copies and exported references no longer trigger the hosted pin-time credential scan, so seeds can refresh Base past 0.2.61 and pin again.
|
|
6
|
+
|
|
3
7
|
## 0.2.65
|
|
4
8
|
|
|
5
9
|
- **Tag-first patch releases (#302).** rer release --tag adopts an existing remote annotated version tag at the exact source commit after its tag Verify passes. The producer captures one immutable tag object and checks object/commit equality before mutation and RELEASED. The existing release-tag Verify rule remains in force.
|
package/modules/release/sign.mjs
CHANGED
|
@@ -21,7 +21,7 @@ export async function signArtifact(options) {
|
|
|
21
21
|
let privateKey;
|
|
22
22
|
try {
|
|
23
23
|
const bytes = await keyInput(options);
|
|
24
|
-
if (
|
|
24
|
+
if (!new RegExp(['^-----BEGIN ', 'PRIVATE ', String.raw`KEY-----\r?\n[\s\S]+\r?\n-----END `, 'PRIVATE ', String.raw`KEY-----\s*$`].join('')).test(bytes.toString('ascii'))) throw new Error();
|
|
25
25
|
privateKey = createPrivateKey({ key: bytes, format: 'pem', type: 'pkcs8' });
|
|
26
26
|
if (privateKey.asymmetricKeyType !== 'ed25519') throw new Error();
|
|
27
27
|
} catch { refuse('SIGNATURE_INVALID'); }
|
package/onboarding/redaction.mjs
CHANGED
|
@@ -60,7 +60,7 @@ const SCHEME = '(?<![a-z0-9+.-])[a-z][a-z0-9+.-]*://';
|
|
|
60
60
|
const USERINFO = SCHEME + '([^\\s/?#"<>`]*)@';
|
|
61
61
|
const SLASHED_USERINFO = SCHEME + '([^\\s/?#:@"<>`\\[\\]]*:(?![0-9]*(?:[/?#\\s"<>`]|$))(?=(?<password>[^\\s"<>`@]{0,128}))\\k<password>)@';
|
|
62
62
|
// Provider token formats recognisable by their prefix alone.
|
|
63
|
-
const TOKEN_PREFIX = '(?:gh[pousr]_
|
|
63
|
+
const TOKEN_PREFIX = '(?:' + ['gh[pousr]_', 'github_pat_', 'sk-(?:proj-)?', 'sk_live_', 'sk_test_', 'rk_live_', 'rk_test_', 'pk_live_', 'whsec_', 'SG\\.', 'xox[baprs]-', 'AKIA', 'ASIA', 'AIza', 'npm_', 'glpat-', 'pypi-', 'hf_', 're_'].join('|') + ')';
|
|
64
64
|
const KNOWN_TOKEN = '(?<![A-Za-z0-9_])' + TOKEN_PREFIX + '[A-Za-z0-9_./+=-]+';
|
|
65
65
|
const PATTERNS = new RegExp('(?:' + [
|
|
66
66
|
AUTH_HEADER, BARE_AUTH,
|