renovate 41.40.0 → 41.42.0
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/dist/config/options/index.js +25 -11
- package/dist/config/options/index.js.map +1 -1
- package/dist/config/presets/forgejo/index.d.ts +5 -0
- package/dist/config/presets/forgejo/index.js +43 -0
- package/dist/config/presets/forgejo/index.js.map +1 -0
- package/dist/config/presets/index.js +6 -4
- package/dist/config/presets/index.js.map +1 -1
- package/dist/config/presets/local/index.js +2 -0
- package/dist/config/presets/local/index.js.map +1 -1
- package/dist/config/presets/parse.js +4 -0
- package/dist/config/presets/parse.js.map +1 -1
- package/dist/constants/platforms.d.ts +2 -1
- package/dist/constants/platforms.js +8 -1
- package/dist/constants/platforms.js.map +1 -1
- package/dist/data/monorepo.json +1 -0
- package/dist/modules/datasource/api.js +4 -0
- package/dist/modules/datasource/api.js.map +1 -1
- package/dist/modules/datasource/forgejo-releases/index.d.ts +17 -0
- package/dist/modules/datasource/forgejo-releases/index.js +80 -0
- package/dist/modules/datasource/forgejo-releases/index.js.map +1 -0
- package/dist/modules/datasource/forgejo-releases/schema.d.ts +39 -0
- package/dist/modules/datasource/forgejo-releases/schema.js +14 -0
- package/dist/modules/datasource/forgejo-releases/schema.js.map +1 -0
- package/dist/modules/datasource/forgejo-tags/index.d.ts +21 -0
- package/dist/modules/datasource/forgejo-tags/index.js +96 -0
- package/dist/modules/datasource/forgejo-tags/index.js.map +1 -0
- package/dist/modules/datasource/forgejo-tags/schema.d.ts +65 -0
- package/dist/modules/datasource/forgejo-tags/schema.js +19 -0
- package/dist/modules/datasource/forgejo-tags/schema.js.map +1 -0
- package/dist/modules/manager/fingerprint.generated.js +1 -1
- package/dist/modules/manager/fingerprint.generated.js.map +1 -1
- package/dist/modules/manager/github-actions/extract.js +8 -2
- package/dist/modules/manager/github-actions/extract.js.map +1 -1
- package/dist/modules/platform/api.d.ts +1 -1
- package/dist/modules/platform/api.js +2 -0
- package/dist/modules/platform/api.js.map +1 -1
- package/dist/modules/platform/forgejo/forgejo-helper.d.ts +36 -0
- package/dist/modules/platform/forgejo/forgejo-helper.js +282 -0
- package/dist/modules/platform/forgejo/forgejo-helper.js.map +1 -0
- package/dist/modules/platform/forgejo/index.d.ts +6 -0
- package/dist/modules/platform/forgejo/index.js +749 -0
- package/dist/modules/platform/forgejo/index.js.map +1 -0
- package/dist/modules/platform/forgejo/pr-cache.d.ts +23 -0
- package/dist/modules/platform/forgejo/pr-cache.js +134 -0
- package/dist/modules/platform/forgejo/pr-cache.js.map +1 -0
- package/dist/modules/platform/forgejo/types.d.ts +185 -0
- package/dist/modules/platform/forgejo/types.js +3 -0
- package/dist/modules/platform/forgejo/types.js.map +1 -0
- package/dist/modules/platform/forgejo/utils.d.ts +20 -0
- package/dist/modules/platform/forgejo/utils.js +142 -0
- package/dist/modules/platform/forgejo/utils.js.map +1 -0
- package/dist/modules/platform/gitea/index.js +1 -0
- package/dist/modules/platform/gitea/index.js.map +1 -1
- package/dist/modules/platform/scm.d.ts +1 -1
- package/dist/util/cache/package/namespaces.d.ts +1 -1
- package/dist/util/cache/package/namespaces.js +4 -0
- package/dist/util/cache/package/namespaces.js.map +1 -1
- package/dist/util/cache/repository/impl/base.d.ts +1 -1
- package/dist/util/cache/repository/types.d.ts +3 -0
- package/dist/util/cache/repository/types.js.map +1 -1
- package/dist/util/common.d.ts +1 -1
- package/dist/util/common.js +10 -3
- package/dist/util/common.js.map +1 -1
- package/dist/util/http/forgejo.d.ts +11 -0
- package/dist/util/http/forgejo.js +57 -0
- package/dist/util/http/forgejo.js.map +1 -0
- package/dist/workers/repository/update/pr/changelog/api.js +8 -6
- package/dist/workers/repository/update/pr/changelog/api.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/forgejo/index.d.ts +4 -0
- package/dist/workers/repository/update/pr/changelog/forgejo/index.js +62 -0
- package/dist/workers/repository/update/pr/changelog/forgejo/index.js.map +1 -0
- package/dist/workers/repository/update/pr/changelog/forgejo/source.d.ts +8 -0
- package/dist/workers/repository/update/pr/changelog/forgejo/source.js +20 -0
- package/dist/workers/repository/update/pr/changelog/forgejo/source.js.map +1 -0
- package/dist/workers/repository/update/pr/changelog/release-notes.js +17 -12
- package/dist/workers/repository/update/pr/changelog/release-notes.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/source.d.ts +1 -1
- package/dist/workers/repository/update/pr/changelog/source.js.map +1 -1
- package/dist/workers/repository/update/pr/changelog/types.d.ts +1 -1
- package/dist/workers/repository/update/pr/changelog/types.js.map +1 -1
- package/package.json +1 -1
- package/renovate-schema.json +1 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ForgejoHttp } from '../../../util/http/forgejo';
|
2
|
+
import { Datasource } from '../datasource';
|
3
|
+
import type { DigestConfig, GetReleasesConfig, ReleaseResult } from '../types';
|
4
|
+
export declare class ForgejoTagsDatasource extends Datasource {
|
5
|
+
static readonly id = "forgejo-tags";
|
6
|
+
http: ForgejoHttp;
|
7
|
+
static readonly defaultRegistryUrls: string[];
|
8
|
+
private static readonly cacheNamespace;
|
9
|
+
readonly releaseTimestampSupport = true;
|
10
|
+
readonly releaseTimestampNote = "The release timestamp is determined from the `created` field in the results.";
|
11
|
+
readonly sourceUrlSupport = "package";
|
12
|
+
readonly sourceUrlNote = "The source URL is determined by using the `packageName` and `registryUrl`.";
|
13
|
+
constructor();
|
14
|
+
static getRegistryURL(registryUrl?: string): string;
|
15
|
+
static getApiUrl(registryUrl?: string): string;
|
16
|
+
static getCacheKey(registryUrl: string | undefined, repo: string, type: string): string;
|
17
|
+
static getSourceUrl(packageName: string, registryUrl?: string): string;
|
18
|
+
getReleases({ registryUrl, packageName: repo, }: GetReleasesConfig): Promise<ReleaseResult | null>;
|
19
|
+
getTagCommit(registryUrl: string | undefined, repo: string, tag: string): Promise<string | null>;
|
20
|
+
getDigest({ packageName: repo, registryUrl }: DigestConfig, newValue?: string): Promise<string | null>;
|
21
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ForgejoTagsDatasource = void 0;
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const decorator_1 = require("../../../util/cache/package/decorator");
|
6
|
+
const forgejo_1 = require("../../../util/http/forgejo");
|
7
|
+
const regex_1 = require("../../../util/regex");
|
8
|
+
const url_1 = require("../../../util/url");
|
9
|
+
const datasource_1 = require("../datasource");
|
10
|
+
const schema_1 = require("./schema");
|
11
|
+
class ForgejoTagsDatasource extends datasource_1.Datasource {
|
12
|
+
static id = 'forgejo-tags';
|
13
|
+
http = new forgejo_1.ForgejoHttp(ForgejoTagsDatasource.id);
|
14
|
+
static defaultRegistryUrls = ['https://code.forgejo.org'];
|
15
|
+
static cacheNamespace = `datasource-${ForgejoTagsDatasource.id}`;
|
16
|
+
releaseTimestampSupport = true;
|
17
|
+
releaseTimestampNote = 'The release timestamp is determined from the `created` field in the results.';
|
18
|
+
sourceUrlSupport = 'package';
|
19
|
+
sourceUrlNote = 'The source URL is determined by using the `packageName` and `registryUrl`.';
|
20
|
+
constructor() {
|
21
|
+
super(ForgejoTagsDatasource.id);
|
22
|
+
}
|
23
|
+
static getRegistryURL(registryUrl) {
|
24
|
+
// fallback to default API endpoint if custom not provided
|
25
|
+
return registryUrl ?? this.defaultRegistryUrls[0];
|
26
|
+
}
|
27
|
+
static getApiUrl(registryUrl) {
|
28
|
+
const res = ForgejoTagsDatasource.getRegistryURL(registryUrl).replace((0, regex_1.regEx)(/\/api\/v1$/), '');
|
29
|
+
return `${(0, url_1.ensureTrailingSlash)(res)}api/v1/`;
|
30
|
+
}
|
31
|
+
static getCacheKey(registryUrl, repo, type) {
|
32
|
+
return `${ForgejoTagsDatasource.getRegistryURL(registryUrl)}:${repo}:${type}`;
|
33
|
+
}
|
34
|
+
static getSourceUrl(packageName, registryUrl) {
|
35
|
+
const url = ForgejoTagsDatasource.getRegistryURL(registryUrl);
|
36
|
+
const normalizedUrl = (0, url_1.ensureTrailingSlash)(url);
|
37
|
+
return `${normalizedUrl}${packageName}`;
|
38
|
+
}
|
39
|
+
// getReleases fetches list of tags for the repository
|
40
|
+
async getReleases({ registryUrl, packageName: repo, }) {
|
41
|
+
const url = `${ForgejoTagsDatasource.getApiUrl(registryUrl)}repos/${repo}/tags`;
|
42
|
+
const tags = (await this.http.getJson(url, {
|
43
|
+
paginate: true,
|
44
|
+
}, schema_1.TagsSchema)).body;
|
45
|
+
const dependency = {
|
46
|
+
sourceUrl: ForgejoTagsDatasource.getSourceUrl(repo, registryUrl),
|
47
|
+
registryUrl: ForgejoTagsDatasource.getRegistryURL(registryUrl),
|
48
|
+
releases: tags.map(({ name, commit }) => ({
|
49
|
+
version: name,
|
50
|
+
gitRef: name,
|
51
|
+
newDigest: commit.sha,
|
52
|
+
releaseTimestamp: commit.created,
|
53
|
+
})),
|
54
|
+
};
|
55
|
+
return dependency;
|
56
|
+
}
|
57
|
+
// getTagCommit fetched the commit has for specified tag
|
58
|
+
async getTagCommit(registryUrl, repo, tag) {
|
59
|
+
const url = `${ForgejoTagsDatasource.getApiUrl(registryUrl)}repos/${repo}/tags/${tag}`;
|
60
|
+
const { body } = await this.http.getJson(url, schema_1.TagSchema);
|
61
|
+
return body.commit.sha;
|
62
|
+
}
|
63
|
+
// getDigest fetched the latest commit for repository main branch
|
64
|
+
// however, if newValue is provided, then getTagCommit is called
|
65
|
+
async getDigest({ packageName: repo, registryUrl }, newValue) {
|
66
|
+
if (newValue?.length) {
|
67
|
+
return this.getTagCommit(registryUrl, repo, newValue);
|
68
|
+
}
|
69
|
+
const url = `${ForgejoTagsDatasource.getApiUrl(registryUrl)}repos/${repo}/commits?stat=false&verification=false&files=false&page=1&limit=1`;
|
70
|
+
const { body } = await this.http.getJson(url, schema_1.CommitsSchema);
|
71
|
+
if (body.length === 0) {
|
72
|
+
return null;
|
73
|
+
}
|
74
|
+
return body[0].sha;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
exports.ForgejoTagsDatasource = ForgejoTagsDatasource;
|
78
|
+
tslib_1.__decorate([
|
79
|
+
(0, decorator_1.cache)({
|
80
|
+
namespace: ForgejoTagsDatasource.cacheNamespace,
|
81
|
+
key: ({ registryUrl, packageName }) => ForgejoTagsDatasource.getCacheKey(registryUrl, packageName, 'tags'),
|
82
|
+
})
|
83
|
+
], ForgejoTagsDatasource.prototype, "getReleases", null);
|
84
|
+
tslib_1.__decorate([
|
85
|
+
(0, decorator_1.cache)({
|
86
|
+
namespace: ForgejoTagsDatasource.cacheNamespace,
|
87
|
+
key: (registryUrl, repo, tag) => ForgejoTagsDatasource.getCacheKey(registryUrl, repo, `tag-${tag}`),
|
88
|
+
})
|
89
|
+
], ForgejoTagsDatasource.prototype, "getTagCommit", null);
|
90
|
+
tslib_1.__decorate([
|
91
|
+
(0, decorator_1.cache)({
|
92
|
+
namespace: ForgejoTagsDatasource.cacheNamespace,
|
93
|
+
key: ({ registryUrl, packageName }) => ForgejoTagsDatasource.getCacheKey(registryUrl, packageName, 'digest'),
|
94
|
+
})
|
95
|
+
], ForgejoTagsDatasource.prototype, "getDigest", null);
|
96
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/modules/datasource/forgejo-tags/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAE9D,wDAAyD;AACzD,+CAA4C;AAC5C,2CAAwD;AACxD,8CAA2C;AAE3C,qCAAgE;AAEhE,MAAa,qBAAsB,SAAQ,uBAAU;IACnD,MAAM,CAAU,EAAE,GAAG,cAAc,CAAC;IAE3B,IAAI,GAAG,IAAI,qBAAW,CAAC,qBAAqB,CAAC,EAAE,CAAC,CAAC;IAE1D,MAAM,CAAU,mBAAmB,GAAG,CAAC,0BAA0B,CAAC,CAAC;IAE3D,MAAM,CAAU,cAAc,GAA0B,cAAc,qBAAqB,CAAC,EAAE,EAAE,CAAC;IAEvF,uBAAuB,GAAG,I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AAC;QAClF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,sBAAa,CAAC,CAAC;QAE7D,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACtB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACrB,CAAC;;AAjIH,sDAkIC;AA7EO;IALL,IAAA,iBAAK,EAAC;QACL,SAAS,EAAE,qBAAqB,CAAC,cAAc;QAC/C,GAAG,EAAE,CAAC,EAAE,WAAW,EAAE,WAAW,EAAqB,EAAE,EAAE,CACvD,qBAAqB,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC;KACtE,CAAC;wDA8BD;AAQK;IALL,IAAA,iBAAK,EAAC;QACL,SAAS,EAAE,qBAAqB,CAAC,cAAc;QAC/C,GAAG,EAAE,CAAC,WAA+B,EAAE,IAAY,EAAE,GAAW,EAAU,EAAE,CAC1E,qBAAqB,CAAC,WAAW,CAAC,WAAW,EAAE,IAAI,EAAE,OAAO,GAAG,EAAE,CAAC;KACrE,CAAC;yDAaD;AASc;IALd,IAAA,iBAAK,EAAC;QACL,SAAS,EAAE,qBAAqB,CAAC,cAAc;QAC/C,GAAG,EAAE,CAAC,EAAE,WAAW,EAAE,WAAW,EAAgB,EAAE,EAAE,CAClD,qBAAqB,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,CAAC;KACxE,CAAC;sDAmBD","sourcesContent":["import { cache } from '../../../util/cache/package/decorator';\nimport type { PackageCacheNamespace } from '../../../util/cache/package/types';\nimport { ForgejoHttp } from '../../../util/http/forgejo';\nimport { regEx } from '../../../util/regex';\nimport { ensureTrailingSlash } from '../../../util/url';\nimport { Datasource } from '../datasource';\nimport type { DigestConfig, GetReleasesConfig, ReleaseResult } from '../types';\nimport { CommitsSchema, TagSchema, TagsSchema } from './schema';\n\nexport class ForgejoTagsDatasource extends Datasource {\n static readonly id = 'forgejo-tags';\n\n override http = new ForgejoHttp(ForgejoTagsDatasource.id);\n\n static readonly defaultRegistryUrls = ['https://code.forgejo.org'];\n\n private static readonly cacheNamespace: PackageCacheNamespace = `datasource-${ForgejoTagsDatasource.id}`;\n\n override readonly releaseTimestampSupport = true;\n override readonly releaseTimestampNote =\n 'The release timestamp is determined from the `created` field in the results.';\n override readonly sourceUrlSupport = 'package';\n override readonly sourceUrlNote =\n 'The source URL is determined by using the `packageName` and `registryUrl`.';\n\n constructor() {\n super(ForgejoTagsDatasource.id);\n }\n\n static getRegistryURL(registryUrl?: string): string {\n // fallback to default API endpoint if custom not provided\n return registryUrl ?? this.defaultRegistryUrls[0];\n }\n\n static getApiUrl(registryUrl?: string): string {\n const res = ForgejoTagsDatasource.getRegistryURL(registryUrl).replace(\n regEx(/\\/api\\/v1$/),\n '',\n );\n return `${ensureTrailingSlash(res)}api/v1/`;\n }\n\n static getCacheKey(\n registryUrl: string | undefined,\n repo: string,\n type: string,\n ): string {\n return `${ForgejoTagsDatasource.getRegistryURL(registryUrl)}:${repo}:${type}`;\n }\n\n static getSourceUrl(packageName: string, registryUrl?: string): string {\n const url = ForgejoTagsDatasource.getRegistryURL(registryUrl);\n const normalizedUrl = ensureTrailingSlash(url);\n return `${normalizedUrl}${packageName}`;\n }\n\n // getReleases fetches list of tags for the repository\n @cache({\n namespace: ForgejoTagsDatasource.cacheNamespace,\n key: ({ registryUrl, packageName }: GetReleasesConfig) =>\n ForgejoTagsDatasource.getCacheKey(registryUrl, packageName, 'tags'),\n })\n async getReleases({\n registryUrl,\n packageName: repo,\n }: GetReleasesConfig): Promise<ReleaseResult | null> {\n const url = `${ForgejoTagsDatasource.getApiUrl(\n registryUrl,\n )}repos/${repo}/tags`;\n const tags = (\n await this.http.getJson(\n url,\n {\n paginate: true,\n },\n TagsSchema,\n )\n ).body;\n\n const dependency: ReleaseResult = {\n sourceUrl: ForgejoTagsDatasource.getSourceUrl(repo, registryUrl),\n registryUrl: ForgejoTagsDatasource.getRegistryURL(registryUrl),\n releases: tags.map(({ name, commit }) => ({\n version: name,\n gitRef: name,\n newDigest: commit.sha,\n releaseTimestamp: commit.created,\n })),\n };\n\n return dependency;\n }\n\n // getTagCommit fetched the commit has for specified tag\n @cache({\n namespace: ForgejoTagsDatasource.cacheNamespace,\n key: (registryUrl: string | undefined, repo: string, tag: string): string =>\n ForgejoTagsDatasource.getCacheKey(registryUrl, repo, `tag-${tag}`),\n })\n async getTagCommit(\n registryUrl: string | undefined,\n repo: string,\n tag: string,\n ): Promise<string | null> {\n const url = `${ForgejoTagsDatasource.getApiUrl(\n registryUrl,\n )}repos/${repo}/tags/${tag}`;\n\n const { body } = await this.http.getJson(url, TagSchema);\n\n return body.commit.sha;\n }\n\n // getDigest fetched the latest commit for repository main branch\n // however, if newValue is provided, then getTagCommit is called\n @cache({\n namespace: ForgejoTagsDatasource.cacheNamespace,\n key: ({ registryUrl, packageName }: DigestConfig) =>\n ForgejoTagsDatasource.getCacheKey(registryUrl, packageName, 'digest'),\n })\n override async getDigest(\n { packageName: repo, registryUrl }: DigestConfig,\n newValue?: string,\n ): Promise<string | null> {\n if (newValue?.length) {\n return this.getTagCommit(registryUrl, repo, newValue);\n }\n\n const url = `${ForgejoTagsDatasource.getApiUrl(\n registryUrl,\n )}repos/${repo}/commits?stat=false&verification=false&files=false&page=1&limit=1`;\n const { body } = await this.http.getJson(url, CommitsSchema);\n\n if (body.length === 0) {\n return null;\n }\n\n return body[0].sha;\n }\n}\n"]}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const CommitSchema: z.ZodObject<{
|
3
|
+
sha: z.ZodString;
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
5
|
+
sha: string;
|
6
|
+
}, {
|
7
|
+
sha: string;
|
8
|
+
}>;
|
9
|
+
export declare const CommitsSchema: z.ZodArray<z.ZodObject<{
|
10
|
+
sha: z.ZodString;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
sha: string;
|
13
|
+
}, {
|
14
|
+
sha: string;
|
15
|
+
}>, "many">;
|
16
|
+
export declare const TagSchema: z.ZodObject<{
|
17
|
+
name: z.ZodString;
|
18
|
+
commit: z.ZodObject<{
|
19
|
+
sha: z.ZodString;
|
20
|
+
created: z.ZodCatch<z.ZodNullable<z.ZodEffects<z.ZodUnknown, import("../../../util/timestamp").Timestamp, unknown>>>;
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
22
|
+
created: import("../../../util/timestamp").Timestamp | null;
|
23
|
+
sha: string;
|
24
|
+
}, {
|
25
|
+
sha: string;
|
26
|
+
created?: unknown;
|
27
|
+
}>;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
commit: {
|
30
|
+
created: import("../../../util/timestamp").Timestamp | null;
|
31
|
+
sha: string;
|
32
|
+
};
|
33
|
+
name: string;
|
34
|
+
}, {
|
35
|
+
commit: {
|
36
|
+
sha: string;
|
37
|
+
created?: unknown;
|
38
|
+
};
|
39
|
+
name: string;
|
40
|
+
}>;
|
41
|
+
export declare const TagsSchema: z.ZodArray<z.ZodObject<{
|
42
|
+
name: z.ZodString;
|
43
|
+
commit: z.ZodObject<{
|
44
|
+
sha: z.ZodString;
|
45
|
+
created: z.ZodCatch<z.ZodNullable<z.ZodEffects<z.ZodUnknown, import("../../../util/timestamp").Timestamp, unknown>>>;
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
47
|
+
created: import("../../../util/timestamp").Timestamp | null;
|
48
|
+
sha: string;
|
49
|
+
}, {
|
50
|
+
sha: string;
|
51
|
+
created?: unknown;
|
52
|
+
}>;
|
53
|
+
}, "strip", z.ZodTypeAny, {
|
54
|
+
commit: {
|
55
|
+
created: import("../../../util/timestamp").Timestamp | null;
|
56
|
+
sha: string;
|
57
|
+
};
|
58
|
+
name: string;
|
59
|
+
}, {
|
60
|
+
commit: {
|
61
|
+
sha: string;
|
62
|
+
created?: unknown;
|
63
|
+
};
|
64
|
+
name: string;
|
65
|
+
}>, "many">;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.TagsSchema = exports.TagSchema = exports.CommitsSchema = exports.CommitSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const timestamp_1 = require("../../../util/timestamp");
|
6
|
+
exports.CommitSchema = zod_1.z.object({
|
7
|
+
sha: zod_1.z.string(),
|
8
|
+
});
|
9
|
+
exports.CommitsSchema = zod_1.z.array(exports.CommitSchema);
|
10
|
+
const TagCommitSchema = zod_1.z.object({
|
11
|
+
sha: zod_1.z.string(),
|
12
|
+
created: timestamp_1.MaybeTimestamp,
|
13
|
+
});
|
14
|
+
exports.TagSchema = zod_1.z.object({
|
15
|
+
name: zod_1.z.string(),
|
16
|
+
commit: TagCommitSchema,
|
17
|
+
});
|
18
|
+
exports.TagsSchema = zod_1.z.array(exports.TagSchema);
|
19
|
+
//# sourceMappingURL=schema.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../lib/modules/datasource/forgejo-tags/schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,uDAAyD;AAE5C,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAC;AAEU,QAAA,aAAa,GAAG,OAAC,CAAC,KAAK,CAAC,oBAAY,CAAC,CAAC;AAEnD,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/B,GAAG,EAAE,OAAC,CAAC,MAAM,EAAE;IACf,OAAO,EAAE,0BAAc;CACxB,CAAC,CAAC;AAEU,QAAA,SAAS,GAAG,OAAC,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,eAAe;CACxB,CAAC,CAAC;AACU,QAAA,UAAU,GAAG,OAAC,CAAC,KAAK,CAAC,iBAAS,CAAC,CAAC","sourcesContent":["import { z } from 'zod';\nimport { MaybeTimestamp } from '../../../util/timestamp';\n\nexport const CommitSchema = z.object({\n sha: z.string(),\n});\n\nexport const CommitsSchema = z.array(CommitSchema);\n\nconst TagCommitSchema = z.object({\n sha: z.string(),\n created: MaybeTimestamp,\n});\n\nexport const TagSchema = z.object({\n name: z.string(),\n commit: TagCommitSchema,\n});\nexport const TagsSchema = z.array(TagSchema);\n"]}
|
@@ -41,7 +41,7 @@ exports.hashMap.set('fleet', '642e8e7ab739fba65bce7222b6f3e80fe44806c4190c8e93c5
|
|
41
41
|
exports.hashMap.set('flux', '3b87b351f98c11ca0e6cb275deb708dc9bf601a7e578f7a3a7e83fe6e15eb540');
|
42
42
|
exports.hashMap.set('fvm', 'aa154dd5ffe3caced30713a9a55967360b7a0f35edd2fc06bd6f3e73c5c87570');
|
43
43
|
exports.hashMap.set('git-submodules', 'd49d744fffb965dea648af37ea16591b4a0ecf32c4f103b04f4555b58d0f3573');
|
44
|
-
exports.hashMap.set('github-actions', '
|
44
|
+
exports.hashMap.set('github-actions', '902ce58637d6e84737822ee924cd63d0044a339dccfe2dc98f21f630ac6b5a5a');
|
45
45
|
exports.hashMap.set('gitlabci', '1bad97e9892ea652b6522154d521aa91b299c52e5618943f04e65f78031a13a9');
|
46
46
|
exports.hashMap.set('gitlabci-include', '5bc01de9b40ecc8888a37690152f4a2f9cacc509b9cb5902aac024ca7a7c8e65');
|
47
47
|
exports.hashMap.set('glasskube', 'fd415356a866ad174a5b70522d662e4289a2c5d5e34c55d57542b0d8968f1645');
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fingerprint.generated.js","sourceRoot":"","sources":["../../../lib/modules/manager/fingerprint.generated.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEjD,eAAO,CAAC,GAAG,CAAC,S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AAC,mBAAmB,EAAC,kEAAkE,CAAC,CAAC;AACpG,eAAO,CAAC,GAAG,CAAC,YAAY,EAAC,kEAAkE,CAAC,CAAC;AAC7F,eAAO,CAAC,GAAG,CAAC,oBAAoB,EAAC,kEAAkE,CAAC,CAAC;AACrG,eAAO,CAAC,GAAG,CAAC,eAAe,EAAC,kEAAkE,CAAC,CAAC;AAChG,eAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,kEAAkE,CAAC,CAAC;AACzF,eAAO,CAAC,GAAG,CAAC,SAAS,EAAC,kEAAkE,CAAC,CAAC;AAC1F,eAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,kEAAkE,CAAC,CAAC;AACzF,eAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,kEAAkE,CAAC,CAAC;AACzF,eAAO,CAAC,GAAG,CAAC,YAAY,EAAC,kEAAkE,CAAC,CAAC;AAC7F,eAAO,CAAC,GAAG,CAAC,SAAS,EAAC,kEAAkE,CAAC,CAAC;AAC1F,eAAO,CAAC,GAAG,CAAC,OAAO,EAAC,kEAAkE,CAAC,CAAC","sourcesContent":["export const hashMap = new Map<string, string>();\n\nhashMap.set('ansible','4c234d79f768392545924fa9b139f8d177f15b6aa46776cf063860a1d36e48c7');\nhashMap.set('ansible-galaxy','a211e40f5c8613986ac16bc8d5389ea23d145cd643091d1b951a7f65926e99ff');\nhashMap.set('argocd','37faccd3854254a2009d963f781e77cf6e5aca3719ffd7cae1fea3d02c153eed');\nhashMap.set('asdf','4f57dac26d9f3c392c305811114a63d11fb67ea840d5d0a47b70a9b312ec9feb');\nhashMap.set('azure-pipelines','0b741b2629f6d94589524ce9b3886765e5c5648c9b6d707bb0b5fede276f9c09');\nhashMap.set('batect','523e8d7a309b4814a02819371313b2dac3764eab64cabfaf1d58b6e89de4ce43');\nhashMap.set('batect-wrapper','90941650f810adb3d7abe476da7221ff3434aa9d09ffc3d310e35108f360f364');\nhashMap.set('bazel','b934a5d30a19ab7afaea6329170e450918e5468de36accd9015514ce2ed477b4');\nhashMap.set('bazel-module','5ee6cb48ee19e710a6a192d0722d637ad2cdbccc585076e2d5c68e2b5678f41b');\nhashMap.set('bazelisk','6fbef61d534724ff259ea6e4fc1cd0a3d5a46d740c375128fa59b225daddd39f');\nhashMap.set('bicep','fbbd74998411012cfba829526701109d1fc184ade0cb11a28e4ca2956174b0f1');\nhashMap.set('bitbucket-pipelines','98c0d715a7eb4e41b8231091b83385f325966373f37dc7d6bc10b1febb6f605e');\nhashMap.set('bitrise','d18d2dcd356e19c4cd94912511a88636198c23b64e54f31da273be11044970cf');\nhashMap.set('buildkite','ac713ce38da057ff3ceb08d092291356dfc74f5b33b75f010bb9db1a211439c0');\nhashMap.set('buildpacks','cc8bbe937416a012df36a5c7ab01ae3cdedbed03615549bbe9f0f27fa40a150b');\nhashMap.set('bun','2b157003f37572d579d6ab95f1c45fad0afe58d2239dad2fbfdc5acf81131a4b');\nhashMap.set('bun-version','49194d7fcb6b7bdd7e7a1264f71532bb2be8142d48478bf74716f7a9d4b306b9');\nhashMap.set('bundler','4cd7892c5c7ab98d254f24a0e62c0f637c8958aebb451158a81656d6be8d6662');\nhashMap.set('cake','a04160b352550cb470acb62f9a532361842c12f2ffbcd473bffca3de024522d9');\nhashMap.set('cargo','62650a1dfa15569c1dbd798a81886e3e78165a4c22f333a70ea93e4a385c8837');\nhashMap.set('cdnurl','70281459e771df007787fc25dba16e4d5109865f97209dcf4f572ddd287d538a');\nhashMap.set('circleci','c7c7a1b71385f0ea7cf1e9fc24c37a1d5dabf13d6952e1e3b2179861b55f4e44');\nhashMap.set('cloudbuild','e4f926bfb907220e97dce98335837c52b4e0fe66d813593a7e572736acfc53f7');\nhashMap.set('cocoapods','c2695071e5aaec8178e29615b6dc1cdf9cc68c5d73d5d88b54fed41e6aaec832');\nhashMap.set('composer','738901dde9bbdafc2372f30c4daf61f37d5337eaa2501d85abd1ba19bc1d3fac');\nhashMap.set('conan','7a5d054f43548ce08a428637ad1fe62796f635cabbca5e8c9cecfd629514cfce');\nhashMap.set('copier','6fa1b4898a64ca780d933728ddc8876014c6f0dea7a2ab2f84b832e8bf4df408');\nhashMap.set('cpanfile','9b354db9666eee2485b27e44a6e61eaadc86ec2f2c6af9bb7bbc9fab54f31642');\nhashMap.set('crossplane','76261ff27b38f9850ee1a3a7e95168abefd96b4736f2cf04a7343e16827b42d8');\nhashMap.set('deps-edn','4e4b76596229f23524086c1dca79c52159ae3ec094e28d8a59bd8a1926458046');\nhashMap.set('devbox','7acedf4c5d3bef2f6c75c8b490c47f18fb03597680b46e4670ae5fe6f9873960');\nhashMap.set('devcontainer','e9982b5ff8aeac8fefb40dc363d3ab35f58af8c08b91eb45d22937a8c60447bb');\nhashMap.set('docker-compose','0c867e3aa14ae7dfc673eef348b2086ae2e36cbebfd1827e031a8030f9295276');\nhashMap.set('dockerfile','0bddc097addf84db6aa48d985567f247ca89affe1265ac09e6cd9635f61710f9');\nhashMap.set('droneci','f2a98fcece07b462baaceb28cd6904e080cb1ab0727fcd7403bea5ffd2e05239');\nhashMap.set('fleet','642e8e7ab739fba65bce7222b6f3e80fe44806c4190c8e93c5bcab23d44e9fd4');\nhashMap.set('flux','3b87b351f98c11ca0e6cb275deb708dc9bf601a7e578f7a3a7e83fe6e15eb540');\nhashMap.set('fvm','aa154dd5ffe3caced30713a9a55967360b7a0f35edd2fc06bd6f3e73c5c87570');\nhashMap.set('git-submodules','d49d744fffb965dea648af37ea16591b4a0ecf32c4f103b04f4555b58d0f3573');\nhashMap.set('github-actions','2398b1deb9e435b4f99ed353ebe6c4254f1976be23d7140d4bfd672c2cd34098');\nhashMap.set('gitlabci','1bad97e9892ea652b6522154d521aa91b299c52e5618943f04e65f78031a13a9');\nhashMap.set('gitlabci-include','5bc01de9b40ecc8888a37690152f4a2f9cacc509b9cb5902aac024ca7a7c8e65');\nhashMap.set('glasskube','fd415356a866ad174a5b70522d662e4289a2c5d5e34c55d57542b0d8968f1645');\nhashMap.set('gleam','8be0140c0a26de7c588c03c2aa5c9f8bc1ffa2a6c9b46a70d23d90581392a3cf');\nhashMap.set('gomod','c3dafbc3c9c21af83d32309718c208289e021dd37b2c6e1db31238b756ab9958');\nhashMap.set('gradle','5a071244b28195823c1978bbef2928ae84144b455f6a87f38deb2e2663624e39');\nhashMap.set('gradle-wrapper','f98404470f93f59794d0fc242779559d5a9d8751f5abc40cb61a49cd0652b1b4');\nhashMap.set('haskell-cabal','a2bf118238529952d0f2f352112dfbc86fb5533ef819625161a130f39c8ca713');\nhashMap.set('helm-requirements','8f643d415ab0cfbef05bce4dce9812eef47bddb7b8b67a191e6a4230489e652f');\nhashMap.set('helm-values','fbd4a0b4bdda8a71dc38ac8916287f73e2b7de5ef122096a5b5d525c1a3306cd');\nhashMap.set('helmfile','ee6a6cfb5680f8f896a2f7ac3d68770b300cfd0a4b75a7ca7edb4e1c1f51b7a2');\nhashMap.set('helmsman','734fa89740fd5140ca3e39204872aba3451c05cd17f0b5e2b635934ed7b1710b');\nhashMap.set('helmv3','295c4600578af3e60ef47fb98815f0c0a6130f288a5e5bde37df2f97128766f6');\nhashMap.set('hermit','c7bc14921a07e0ca5dcf02d0c1103702ee9262568097a2f50533aaee94af0158');\nhashMap.set('homebrew','4b05428b846b8a7c260a41500cc14938cca8e7d5df0e2510050f95718f6f823f');\nhashMap.set('html','226a9084e10ebf754906386159db08667394f5432105249bdb30d9c60af9fb56');\nhashMap.set('jenkins','309db014e3590e1cd6d53ede2755395c82e5cd4b880425daf52a6ab60e0d6a42');\nhashMap.set('jsonnet-bundler','83c3b9f3c6903929f6842bafc8219437dc822005505b64ed2cb6e63babc28dcb');\nhashMap.set('kotlin-script','60f8f714bb3aef5d7e3e91c67f658847ad2b01bfc044a2f0dd0798fccb5c7c30');\nhashMap.set('kubernetes','62cfa6c77593b48290f3c26a2f390c4bdfe8ab3cfb79e358b10d8aece689a999');\nhashMap.set('kustomize','f88d739011d95ac37e314d66521c142bfee44b2d903b892d61a009e43d194430');\nhashMap.set('leiningen','0598d2f53cfc92076d47186245a7b591d2b0df157609a7f55a37b54ab2d32a77');\nhashMap.set('maven','139bff9cefaf0f2ae6c5a71cb9638febd70465f66adc2e0c25fd58c13ad04e0e');\nhashMap.set('maven-wrapper','56edbbfaf0844fc497de31159719ef5064389120a1a9ca85c0c67d5328c8ac81');\nhashMap.set('meteor','a9785d85b3520ed9e763c800730f36b95747795699758ecbe1395133c5b0040e');\nhashMap.set('mint','7072e37f18bb57500018406eb8711b2615b1916f073867f30653cdd4a99dab81');\nhashMap.set('mise','9449967db2b79b6f8792a70e560dd8e2107460c75b18b0a3edd421e708c1d32b');\nhashMap.set('mix','9f506a6e42135fd299d240ac445996f414a502c01588107d7e65848b1368ee03');\nhashMap.set('nix','2630474b9fce0f0d3d8e27df4d86abd7564931e2eae3b4d54b3870bb712366f5');\nhashMap.set('nodenv','d159174d53e39af2013443cf86df88e14aac79a5a8d602180af229dcb2ddeda9');\nhashMap.set('npm','de49ac7e1b9ee06e6b8a99bc85026ddd43478669818770378a51aff5e147e43e');\nhashMap.set('nuget','e46f9986c7037ce0adf04bbee3e0cf7d844d82f52a3beda7205bc01246d155d3');\nhashMap.set('nvm','1928fd50bd6cc9f42d73262630056f2c0f8b0e061282bd02e58d116fc1788e2b');\nhashMap.set('ocb','bff1864d0937341790cfe08833c39642f785844762669f5753ff057bada923ab');\nhashMap.set('osgi','dae012cd486843eb53da4b032105e54d18f4e7537bd59c5321313950dd108a95');\nhashMap.set('pep621','9d552a625f37054b69c27e42d051450cfd9eae7a31aded8f3e042b6cf527a884');\nhashMap.set('pep723','bf07d466ea1bc9513c8d2cb475fcca3bc9b61f2184bd9af0a7a28d45b6f57ecd');\nhashMap.set('pip-compile','ae04fc449e79eefe95aa15553b6a6bebd417f3ca3251b37121e17503c808a2ac');\nhashMap.set('pip_requirements','70bfe70544e29f3c7fdbc2261efcebcaf8836e92bd21da35c379c9f4573ff43b');\nhashMap.set('pip_setup','31b330d9666d61474326a761a3ce1479f9a189ef6838ecfee78843ff4c80af73');\nhashMap.set('pipenv','823f1652628a6ce17943fe24a187aa2faa77d21e0aa001d3f8b0f9cd93a74ba9');\nhashMap.set('pixi','a0c9a077564d519aea6a08cc6084e006537c7636ef56d1a7eb71ad33613688e0');\nhashMap.set('poetry','f520b329d6b408fa727b0fe82bf464caed8525c3a2b12a746e95ce00e32c2129');\nhashMap.set('pre-commit','64efc3146f0981751a584a29bdcfe6701cc17849c7bc2bc87b238315d843524a');\nhashMap.set('pub','8e80b151d76db21808ddc36532e46fc657d0f8b7925943f1d13ceb19b1e061a3');\nhashMap.set('puppet','34f7e3916780e8ed352b65864bad91bf66547e29f91ee8fca7fd6e8fcd2621fd');\nhashMap.set('pyenv','4e520570d9a1407864aa7c5461d4008372d889254067e405cee2212d0ef8990b');\nhashMap.set('renovate-config-presets','27f100d67e2a1ad20cfd4aa3f1db1f1c34f62910929695f381160b3835a7fa65');\nhashMap.set('ruby-version','4aac2178a20ccdf8136363030e5156017f3d44368b4192b3280997df596dcacc');\nhashMap.set('runtime-version','dbf80ce2a5f07dd34bc9a008159b4f08052cc6fd0d92cbd2aeb0026c8008fa72');\nhashMap.set('sbt','dc1ec4aeeb5e012c7a595478873ad67e2dee6e2af951b12b9e9057cb64f2258d');\nhashMap.set('scalafmt','8a54fef703269ed31ce28887e62b0b838a13359e86fa77c7f4dceb89fda0f352');\nhashMap.set('setup-cfg','9a778d8a58f643fff1d23d750dfebed21e45bce99bfdcdc3de39795a407d983f');\nhashMap.set('sveltos','a69f9e206526af08685e20a72344b22d856f2effd882e67333a153a989a0a047');\nhashMap.set('swift','4866ba3e6d6e9288ae9e3a11ef673b36d1d78360e21d8266ae3a945b8683d669');\nhashMap.set('tekton','eb8fb6a25ca7fd0d304f67d5ab2e93ddd8b34854553130003ce3340ca7b3bba1');\nhashMap.set('terraform','bb83f8ec4e9b153a7714b52c078f9cab39e92c19520aa08b842580419d510eec');\nhashMap.set('terraform-version','b08480f326c45daf3daeccc2d2f593a723c30a50437a66ac2290d671b427a355');\nhashMap.set('terragrunt','26bba44332bb86fd841a1ae7d6c57495f2432ef8261605011a0c9094d1808432');\nhashMap.set('terragrunt-version','45f221b13a193a42687f318e10cf1558079e28c970e91ce25c370f35f88f2f58');\nhashMap.set('tflint-plugin','40ab6d0c975ff0b8e42651c088e159afe9f0d0c43a1dbf7c1295ec03c77bdc7c');\nhashMap.set('travis','30174e78a6297e44db1c030ea2e111084e14b1eac220f522522c77d684a76285');\nhashMap.set('unity3d','9a61f8db397bc962f03a1d82045805ffa89863894e26824ecbeffcbf66b3ba3d');\nhashMap.set('velaci','9ad5d5d2584b9c189c4edcd25ad9103926bd4ba850a419a3b5e4aba9682817c3');\nhashMap.set('vendir','e2584cb214854405fed0b0e5dd608b709df1d8dadb7b761723125182e166fb02');\nhashMap.set('woodpecker','eaaa0a3bcfd0dc60c0990f2a1d7acf19c4f86ce4641ab3cf0a31f2bf46fc61b8');\nhashMap.set('jsonata','ca3fa7cd5d446eab618371ebf8d5aea3e47a494231c5f93b08496b859e67a020');\nhashMap.set('regex','f855dba6f55cf7e571241a0b273d2b12d8968ff76a0eeb773d006346949b6053');"]}
|
1
|
+
{"version":3,"file":"fingerprint.generated.js","sourceRoot":"","sources":["../../../lib/modules/manager/fingerprint.generated.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,IAAI,GAAG,EAAkB,CAAC;AAEjD,eAAO,CAAC,GAAG,CAAC,SAAS,EAAC,kEAAkE,CAAC,CAAC;AAC1F,eAAO,CAAC,GAAG,CAAC,gBAAgB,EAAC,kEAAkE,CAAC,CAAC;AACjG,eAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,kEAAkE,CAAC,CAAC;AACzF,eAAO,CAAC,GAAG,CAAC,MAAM,EAAC,kEAAkE,CAAC,CAAC;AACvF,eAAO,CAAC,GAAG,CAAC,iBAAiB,EAAC,kEAAkE,CAAC,CAAC;AAClG,eAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,kEAAkE,CAAC,CAAC;AACzF,eAAO,CAAC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,CAAC,GAAG,CAAC,QAAQ,EAAC,kEAAkE,CAAC,CAAC;AACzF,eAAO,CAAC,GAAG,CAAC,QAAQ,EAAC,kEAAkE,CAAC,CAAC;AACzF,eAAO,CAAC,GAAG,CAAC,YAAY,EAAC,kEAAkE,CAAC,CAAC;AAC7F,eAAO,CAAC,GAAG,CAAC,SAAS,EAAC,kEAAkE,CAAC,CAAC;AAC1F,eAAO,CAAC,GAAG,CAAC,OAAO,EAAC,kEAAkE,CAAC,CAAC","sourcesContent":["export const hashMap = new Map<string, string>();\n\nhashMap.set('ansible','4c234d79f768392545924fa9b139f8d177f15b6aa46776cf063860a1d36e48c7');\nhashMap.set('ansible-galaxy','a211e40f5c8613986ac16bc8d5389ea23d145cd643091d1b951a7f65926e99ff');\nhashMap.set('argocd','37faccd3854254a2009d963f781e77cf6e5aca3719ffd7cae1fea3d02c153eed');\nhashMap.set('asdf','4f57dac26d9f3c392c305811114a63d11fb67ea840d5d0a47b70a9b312ec9feb');\nhashMap.set('azure-pipelines','0b741b2629f6d94589524ce9b3886765e5c5648c9b6d707bb0b5fede276f9c09');\nhashMap.set('batect','523e8d7a309b4814a02819371313b2dac3764eab64cabfaf1d58b6e89de4ce43');\nhashMap.set('batect-wrapper','90941650f810adb3d7abe476da7221ff3434aa9d09ffc3d310e35108f360f364');\nhashMap.set('bazel','b934a5d30a19ab7afaea6329170e450918e5468de36accd9015514ce2ed477b4');\nhashMap.set('bazel-module','5ee6cb48ee19e710a6a192d0722d637ad2cdbccc585076e2d5c68e2b5678f41b');\nhashMap.set('bazelisk','6fbef61d534724ff259ea6e4fc1cd0a3d5a46d740c375128fa59b225daddd39f');\nhashMap.set('bicep','fbbd74998411012cfba829526701109d1fc184ade0cb11a28e4ca2956174b0f1');\nhashMap.set('bitbucket-pipelines','98c0d715a7eb4e41b8231091b83385f325966373f37dc7d6bc10b1febb6f605e');\nhashMap.set('bitrise','d18d2dcd356e19c4cd94912511a88636198c23b64e54f31da273be11044970cf');\nhashMap.set('buildkite','ac713ce38da057ff3ceb08d092291356dfc74f5b33b75f010bb9db1a211439c0');\nhashMap.set('buildpacks','cc8bbe937416a012df36a5c7ab01ae3cdedbed03615549bbe9f0f27fa40a150b');\nhashMap.set('bun','2b157003f37572d579d6ab95f1c45fad0afe58d2239dad2fbfdc5acf81131a4b');\nhashMap.set('bun-version','49194d7fcb6b7bdd7e7a1264f71532bb2be8142d48478bf74716f7a9d4b306b9');\nhashMap.set('bundler','4cd7892c5c7ab98d254f24a0e62c0f637c8958aebb451158a81656d6be8d6662');\nhashMap.set('cake','a04160b352550cb470acb62f9a532361842c12f2ffbcd473bffca3de024522d9');\nhashMap.set('cargo','62650a1dfa15569c1dbd798a81886e3e78165a4c22f333a70ea93e4a385c8837');\nhashMap.set('cdnurl','70281459e771df007787fc25dba16e4d5109865f97209dcf4f572ddd287d538a');\nhashMap.set('circleci','c7c7a1b71385f0ea7cf1e9fc24c37a1d5dabf13d6952e1e3b2179861b55f4e44');\nhashMap.set('cloudbuild','e4f926bfb907220e97dce98335837c52b4e0fe66d813593a7e572736acfc53f7');\nhashMap.set('cocoapods','c2695071e5aaec8178e29615b6dc1cdf9cc68c5d73d5d88b54fed41e6aaec832');\nhashMap.set('composer','738901dde9bbdafc2372f30c4daf61f37d5337eaa2501d85abd1ba19bc1d3fac');\nhashMap.set('conan','7a5d054f43548ce08a428637ad1fe62796f635cabbca5e8c9cecfd629514cfce');\nhashMap.set('copier','6fa1b4898a64ca780d933728ddc8876014c6f0dea7a2ab2f84b832e8bf4df408');\nhashMap.set('cpanfile','9b354db9666eee2485b27e44a6e61eaadc86ec2f2c6af9bb7bbc9fab54f31642');\nhashMap.set('crossplane','76261ff27b38f9850ee1a3a7e95168abefd96b4736f2cf04a7343e16827b42d8');\nhashMap.set('deps-edn','4e4b76596229f23524086c1dca79c52159ae3ec094e28d8a59bd8a1926458046');\nhashMap.set('devbox','7acedf4c5d3bef2f6c75c8b490c47f18fb03597680b46e4670ae5fe6f9873960');\nhashMap.set('devcontainer','e9982b5ff8aeac8fefb40dc363d3ab35f58af8c08b91eb45d22937a8c60447bb');\nhashMap.set('docker-compose','0c867e3aa14ae7dfc673eef348b2086ae2e36cbebfd1827e031a8030f9295276');\nhashMap.set('dockerfile','0bddc097addf84db6aa48d985567f247ca89affe1265ac09e6cd9635f61710f9');\nhashMap.set('droneci','f2a98fcece07b462baaceb28cd6904e080cb1ab0727fcd7403bea5ffd2e05239');\nhashMap.set('fleet','642e8e7ab739fba65bce7222b6f3e80fe44806c4190c8e93c5bcab23d44e9fd4');\nhashMap.set('flux','3b87b351f98c11ca0e6cb275deb708dc9bf601a7e578f7a3a7e83fe6e15eb540');\nhashMap.set('fvm','aa154dd5ffe3caced30713a9a55967360b7a0f35edd2fc06bd6f3e73c5c87570');\nhashMap.set('git-submodules','d49d744fffb965dea648af37ea16591b4a0ecf32c4f103b04f4555b58d0f3573');\nhashMap.set('github-actions','902ce58637d6e84737822ee924cd63d0044a339dccfe2dc98f21f630ac6b5a5a');\nhashMap.set('gitlabci','1bad97e9892ea652b6522154d521aa91b299c52e5618943f04e65f78031a13a9');\nhashMap.set('gitlabci-include','5bc01de9b40ecc8888a37690152f4a2f9cacc509b9cb5902aac024ca7a7c8e65');\nhashMap.set('glasskube','fd415356a866ad174a5b70522d662e4289a2c5d5e34c55d57542b0d8968f1645');\nhashMap.set('gleam','8be0140c0a26de7c588c03c2aa5c9f8bc1ffa2a6c9b46a70d23d90581392a3cf');\nhashMap.set('gomod','c3dafbc3c9c21af83d32309718c208289e021dd37b2c6e1db31238b756ab9958');\nhashMap.set('gradle','5a071244b28195823c1978bbef2928ae84144b455f6a87f38deb2e2663624e39');\nhashMap.set('gradle-wrapper','f98404470f93f59794d0fc242779559d5a9d8751f5abc40cb61a49cd0652b1b4');\nhashMap.set('haskell-cabal','a2bf118238529952d0f2f352112dfbc86fb5533ef819625161a130f39c8ca713');\nhashMap.set('helm-requirements','8f643d415ab0cfbef05bce4dce9812eef47bddb7b8b67a191e6a4230489e652f');\nhashMap.set('helm-values','fbd4a0b4bdda8a71dc38ac8916287f73e2b7de5ef122096a5b5d525c1a3306cd');\nhashMap.set('helmfile','ee6a6cfb5680f8f896a2f7ac3d68770b300cfd0a4b75a7ca7edb4e1c1f51b7a2');\nhashMap.set('helmsman','734fa89740fd5140ca3e39204872aba3451c05cd17f0b5e2b635934ed7b1710b');\nhashMap.set('helmv3','295c4600578af3e60ef47fb98815f0c0a6130f288a5e5bde37df2f97128766f6');\nhashMap.set('hermit','c7bc14921a07e0ca5dcf02d0c1103702ee9262568097a2f50533aaee94af0158');\nhashMap.set('homebrew','4b05428b846b8a7c260a41500cc14938cca8e7d5df0e2510050f95718f6f823f');\nhashMap.set('html','226a9084e10ebf754906386159db08667394f5432105249bdb30d9c60af9fb56');\nhashMap.set('jenkins','309db014e3590e1cd6d53ede2755395c82e5cd4b880425daf52a6ab60e0d6a42');\nhashMap.set('jsonnet-bundler','83c3b9f3c6903929f6842bafc8219437dc822005505b64ed2cb6e63babc28dcb');\nhashMap.set('kotlin-script','60f8f714bb3aef5d7e3e91c67f658847ad2b01bfc044a2f0dd0798fccb5c7c30');\nhashMap.set('kubernetes','62cfa6c77593b48290f3c26a2f390c4bdfe8ab3cfb79e358b10d8aece689a999');\nhashMap.set('kustomize','f88d739011d95ac37e314d66521c142bfee44b2d903b892d61a009e43d194430');\nhashMap.set('leiningen','0598d2f53cfc92076d47186245a7b591d2b0df157609a7f55a37b54ab2d32a77');\nhashMap.set('maven','139bff9cefaf0f2ae6c5a71cb9638febd70465f66adc2e0c25fd58c13ad04e0e');\nhashMap.set('maven-wrapper','56edbbfaf0844fc497de31159719ef5064389120a1a9ca85c0c67d5328c8ac81');\nhashMap.set('meteor','a9785d85b3520ed9e763c800730f36b95747795699758ecbe1395133c5b0040e');\nhashMap.set('mint','7072e37f18bb57500018406eb8711b2615b1916f073867f30653cdd4a99dab81');\nhashMap.set('mise','9449967db2b79b6f8792a70e560dd8e2107460c75b18b0a3edd421e708c1d32b');\nhashMap.set('mix','9f506a6e42135fd299d240ac445996f414a502c01588107d7e65848b1368ee03');\nhashMap.set('nix','2630474b9fce0f0d3d8e27df4d86abd7564931e2eae3b4d54b3870bb712366f5');\nhashMap.set('nodenv','d159174d53e39af2013443cf86df88e14aac79a5a8d602180af229dcb2ddeda9');\nhashMap.set('npm','de49ac7e1b9ee06e6b8a99bc85026ddd43478669818770378a51aff5e147e43e');\nhashMap.set('nuget','e46f9986c7037ce0adf04bbee3e0cf7d844d82f52a3beda7205bc01246d155d3');\nhashMap.set('nvm','1928fd50bd6cc9f42d73262630056f2c0f8b0e061282bd02e58d116fc1788e2b');\nhashMap.set('ocb','bff1864d0937341790cfe08833c39642f785844762669f5753ff057bada923ab');\nhashMap.set('osgi','dae012cd486843eb53da4b032105e54d18f4e7537bd59c5321313950dd108a95');\nhashMap.set('pep621','9d552a625f37054b69c27e42d051450cfd9eae7a31aded8f3e042b6cf527a884');\nhashMap.set('pep723','bf07d466ea1bc9513c8d2cb475fcca3bc9b61f2184bd9af0a7a28d45b6f57ecd');\nhashMap.set('pip-compile','ae04fc449e79eefe95aa15553b6a6bebd417f3ca3251b37121e17503c808a2ac');\nhashMap.set('pip_requirements','70bfe70544e29f3c7fdbc2261efcebcaf8836e92bd21da35c379c9f4573ff43b');\nhashMap.set('pip_setup','31b330d9666d61474326a761a3ce1479f9a189ef6838ecfee78843ff4c80af73');\nhashMap.set('pipenv','823f1652628a6ce17943fe24a187aa2faa77d21e0aa001d3f8b0f9cd93a74ba9');\nhashMap.set('pixi','a0c9a077564d519aea6a08cc6084e006537c7636ef56d1a7eb71ad33613688e0');\nhashMap.set('poetry','f520b329d6b408fa727b0fe82bf464caed8525c3a2b12a746e95ce00e32c2129');\nhashMap.set('pre-commit','64efc3146f0981751a584a29bdcfe6701cc17849c7bc2bc87b238315d843524a');\nhashMap.set('pub','8e80b151d76db21808ddc36532e46fc657d0f8b7925943f1d13ceb19b1e061a3');\nhashMap.set('puppet','34f7e3916780e8ed352b65864bad91bf66547e29f91ee8fca7fd6e8fcd2621fd');\nhashMap.set('pyenv','4e520570d9a1407864aa7c5461d4008372d889254067e405cee2212d0ef8990b');\nhashMap.set('renovate-config-presets','27f100d67e2a1ad20cfd4aa3f1db1f1c34f62910929695f381160b3835a7fa65');\nhashMap.set('ruby-version','4aac2178a20ccdf8136363030e5156017f3d44368b4192b3280997df596dcacc');\nhashMap.set('runtime-version','dbf80ce2a5f07dd34bc9a008159b4f08052cc6fd0d92cbd2aeb0026c8008fa72');\nhashMap.set('sbt','dc1ec4aeeb5e012c7a595478873ad67e2dee6e2af951b12b9e9057cb64f2258d');\nhashMap.set('scalafmt','8a54fef703269ed31ce28887e62b0b838a13359e86fa77c7f4dceb89fda0f352');\nhashMap.set('setup-cfg','9a778d8a58f643fff1d23d750dfebed21e45bce99bfdcdc3de39795a407d983f');\nhashMap.set('sveltos','a69f9e206526af08685e20a72344b22d856f2effd882e67333a153a989a0a047');\nhashMap.set('swift','4866ba3e6d6e9288ae9e3a11ef673b36d1d78360e21d8266ae3a945b8683d669');\nhashMap.set('tekton','eb8fb6a25ca7fd0d304f67d5ab2e93ddd8b34854553130003ce3340ca7b3bba1');\nhashMap.set('terraform','bb83f8ec4e9b153a7714b52c078f9cab39e92c19520aa08b842580419d510eec');\nhashMap.set('terraform-version','b08480f326c45daf3daeccc2d2f593a723c30a50437a66ac2290d671b427a355');\nhashMap.set('terragrunt','26bba44332bb86fd841a1ae7d6c57495f2432ef8261605011a0c9094d1808432');\nhashMap.set('terragrunt-version','45f221b13a193a42687f318e10cf1558079e28c970e91ce25c370f35f88f2f58');\nhashMap.set('tflint-plugin','40ab6d0c975ff0b8e42651c088e159afe9f0d0c43a1dbf7c1295ec03c77bdc7c');\nhashMap.set('travis','30174e78a6297e44db1c030ea2e111084e14b1eac220f522522c77d684a76285');\nhashMap.set('unity3d','9a61f8db397bc962f03a1d82045805ffa89863894e26824ecbeffcbf66b3ba3d');\nhashMap.set('velaci','9ad5d5d2584b9c189c4edcd25ad9103926bd4ba850a419a3b5e4aba9682817c3');\nhashMap.set('vendir','e2584cb214854405fed0b0e5dd608b709df1d8dadb7b761723125182e166fb02');\nhashMap.set('woodpecker','eaaa0a3bcfd0dc60c0990f2a1d7acf19c4f86ce4641ab3cf0a31f2bf46fc61b8');\nhashMap.set('jsonata','ca3fa7cd5d446eab618371ebf8d5aea3e47a494231c5f93b08496b859e67a020');\nhashMap.set('regex','f855dba6f55cf7e571241a0b273d2b12d8968ff76a0eeb773d006346949b6053');"]}
|
@@ -6,6 +6,7 @@ const global_1 = require("../../../config/global");
|
|
6
6
|
const logger_1 = require("../../../logger");
|
7
7
|
const common_1 = require("../../../util/common");
|
8
8
|
const regex_1 = require("../../../util/regex");
|
9
|
+
const forgejo_tags_1 = require("../../datasource/forgejo-tags");
|
9
10
|
const gitea_tags_1 = require("../../datasource/gitea-tags");
|
10
11
|
const github_releases_1 = require("../../datasource/github-releases");
|
11
12
|
const github_runners_1 = require("../../datasource/github-runners");
|
@@ -94,13 +95,18 @@ function extractWithRegex(content, config) {
|
|
94
95
|
function detectDatasource(registryUrl) {
|
95
96
|
const platform = (0, common_1.detectPlatform)(registryUrl);
|
96
97
|
switch (platform) {
|
97
|
-
case '
|
98
|
-
return {
|
98
|
+
case 'forgejo':
|
99
|
+
return {
|
100
|
+
registryUrls: [registryUrl],
|
101
|
+
datasource: forgejo_tags_1.ForgejoTagsDatasource.id,
|
102
|
+
};
|
99
103
|
case 'gitea':
|
100
104
|
return {
|
101
105
|
registryUrls: [registryUrl],
|
102
106
|
datasource: gitea_tags_1.GiteaTagsDatasource.id,
|
103
107
|
};
|
108
|
+
case 'github':
|
109
|
+
return { registryUrls: [registryUrl] };
|
104
110
|
}
|
105
111
|
return {
|
106
112
|
skipReason: 'unsupported-url',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/github-actions/extract.ts"],"names":[],"mappings":";;AA8PA,gDAcC;;AA5QD,mDAA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,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,CAAC;AAClB,CAAC","sourcesContent":["import { GlobalConfig } from '../../../config/global';\nimport { logger, withMeta } from '../../../logger';\nimport { detectPlatform } from '../../../util/common';\nimport { newlineRegex, regEx } from '../../../util/regex';\nimport { GiteaTagsDatasource } from '../../datasource/gitea-tags';\nimport { GithubReleasesDatasource } from '../../datasource/github-releases';\nimport { GithubRunnersDatasource } from '../../datasource/github-runners';\nimport { GithubTagsDatasource } from '../../datasource/github-tags';\nimport * as dockerVersioning from '../../versioning/docker';\nimport * as nodeVersioning from '../../versioning/node';\nimport * as npmVersioning from '../../versioning/npm';\nimport { getDep } from '../dockerfile/extract';\nimport type {\n ExtractConfig,\n PackageDependency,\n PackageFileContent,\n} from '../types';\nimport type { Steps } from './schema';\nimport { WorkflowSchema } from './schema';\n\nconst dockerActionRe = regEx(/^\\s+uses\\s*: ['\"]?docker:\\/\\/([^'\"]+)\\s*$/);\nconst actionRe = regEx(\n /^\\s+-?\\s+?uses\\s*: (?<replaceString>['\"]?(?<depName>(?<registryUrl>https:\\/\\/[.\\w-]+\\/)?(?<packageName>[\\w-]+\\/[.\\w-]+))(?<path>\\/.*)?@(?<currentValue>[^\\s'\"]+)['\"]?(?:(?<commentWhiteSpaces>\\s+)#\\s*(((?:renovate\\s*:\\s*)?(?:pin\\s+|tag\\s*=\\s*)?|(?:ratchet:[\\w-]+\\/[.\\w-]+)?)@?(?<tag>([\\w-]*[-/])?v?\\d+(?:\\.\\d+(?:\\.\\d+)?)?)|(?:ratchet:exclude)))?)/,\n);\n\n// SHA1 or SHA256, see https://github.blog/2020-10-19-git-2-29-released/\nconst shaRe = regEx(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/);\nconst shaShortRe = regEx(/^[a-f0-9]{6,7}$/);\n\n// detects if we run against a Github Enterprise Server and adds the URL to the beginning of the registryURLs for looking up Actions\n// This reflects the behavior of how GitHub looks up Actions\n// First on the Enterprise Server, then on GitHub.com\nfunction detectCustomGitHubRegistryUrlsForActions(): PackageDependency {\n const endpoint = GlobalConfig.get('endpoint');\n const registryUrls = ['https://github.com'];\n if (endpoint && GlobalConfig.get('platform') === 'github') {\n const parsedEndpoint = new URL(endpoint);\n\n if (\n parsedEndpoint.host !== 'github.com' &&\n parsedEndpoint.host !== 'api.github.com'\n ) {\n registryUrls.unshift(\n `${parsedEndpoint.protocol}//${parsedEndpoint.host}`,\n );\n return { registryUrls };\n }\n }\n return {};\n}\n\nfunction extractWithRegex(\n content: string,\n config: ExtractConfig,\n): PackageDependency[] {\n const customRegistryUrlsPackageDependency =\n detectCustomGitHubRegistryUrlsForActions();\n logger.trace('github-actions.extractWithRegex()');\n const deps: PackageDependency[] = [];\n for (const line of content.split(newlineRegex)) {\n if (line.trim().startsWith('#')) {\n continue;\n }\n\n const dockerMatch = dockerActionRe.exec(line);\n if (dockerMatch) {\n const [, currentFrom] = dockerMatch;\n const dep = getDep(currentFrom, true, config.registryAliases);\n dep.depType = 'docker';\n deps.push(dep);\n continue;\n }\n\n const tagMatch = actionRe.exec(line);\n if (tagMatch?.groups) {\n const {\n depName,\n packageName,\n currentValue,\n path = '',\n tag,\n replaceString,\n registryUrl = '',\n commentWhiteSpaces = ' ',\n } = tagMatch.groups;\n let quotes = '';\n if (replaceString.includes(\"'\")) {\n quotes = \"'\";\n }\n if (replaceString.includes('\"')) {\n quotes = '\"';\n }\n const dep: PackageDependency = {\n depName,\n ...(packageName !== depName && { packageName }),\n commitMessageTopic: '{{{depName}}} action',\n datasource: GithubTagsDatasource.id,\n versioning: dockerVersioning.id,\n depType: 'action',\n replaceString,\n autoReplaceStringTemplate: `${quotes}{{depName}}${path}@{{#if newDigest}}{{newDigest}}${quotes}{{#if newValue}}${commentWhiteSpaces}# {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}${quotes}{{/unless}}`,\n ...(registryUrl\n ? detectDatasource(registryUrl)\n : customRegistryUrlsPackageDependency),\n };\n if (shaRe.test(currentValue)) {\n dep.currentValue = tag;\n dep.currentDigest = currentValue;\n } else if (shaShortRe.test(currentValue)) {\n dep.currentValue = tag;\n dep.currentDigestShort = currentValue;\n } else {\n dep.currentValue = currentValue;\n }\n deps.push(dep);\n }\n }\n return deps;\n}\n\nfunction detectDatasource(registryUrl: string): PackageDependency {\n const platform = detectPlatform(registryUrl);\n\n switch (platform) {\n case 'github':\n return { registryUrls: [registryUrl] };\n case 'gitea':\n return {\n registryUrls: [registryUrl],\n datasource: GiteaTagsDatasource.id,\n };\n }\n\n return {\n skipReason: 'unsupported-url',\n };\n}\n\nconst runnerVersionRegex = regEx(\n /^\\s*(?<depName>[a-zA-Z]+)-(?<currentValue>[^\\s]+)/,\n);\n\nfunction extractRunner(runner: string): PackageDependency | null {\n const runnerVersionGroups = runnerVersionRegex.exec(runner)?.groups;\n if (!runnerVersionGroups) {\n return null;\n }\n\n const { depName, currentValue } = runnerVersionGroups;\n\n if (!GithubRunnersDatasource.isValidRunner(depName, currentValue)) {\n return null;\n }\n\n const dependency: PackageDependency = {\n depName,\n currentValue,\n replaceString: `${depName}-${currentValue}`,\n depType: 'github-runner',\n datasource: GithubRunnersDatasource.id,\n autoReplaceStringTemplate: '{{depName}}-{{newValue}}',\n };\n\n if (!dockerVersioning.api.isValid(currentValue)) {\n dependency.skipReason = 'invalid-version';\n }\n\n return dependency;\n}\n\nconst versionedActions: Record<string, string> = {\n go: npmVersioning.id,\n node: nodeVersioning.id,\n python: npmVersioning.id,\n // Not covered yet because they use different datasources/packageNames:\n // - dotnet\n // - java\n};\n\nfunction extractSteps(\n steps: Steps[],\n deps: PackageDependency<Record<string, any>>[],\n): void {\n for (const step of steps) {\n for (const [action, versioning] of Object.entries(versionedActions)) {\n const actionName = `actions/setup-${action}`;\n if (step.uses === actionName || step.uses?.startsWith(`${actionName}@`)) {\n const fieldName = `${action}-version`;\n const currentValue = step.with?.[fieldName];\n if (currentValue) {\n deps.push({\n datasource: GithubReleasesDatasource.id,\n depName: action,\n packageName: `actions/${action}-versions`,\n versioning,\n extractVersion: '^(?<version>\\\\d+\\\\.\\\\d+\\\\.\\\\d+)(-\\\\d+)?$', // Actions release tags are like 1.24.1-13667719799\n currentValue,\n depType: 'uses-with',\n });\n }\n }\n }\n }\n}\n\nfunction extractWithYAMLParser(\n content: string,\n packageFile: string,\n config: ExtractConfig,\n): PackageDependency[] {\n logger.trace('github-actions.extractWithYAMLParser()');\n const deps: PackageDependency[] = [];\n\n const obj = withMeta({ packageFile }, () => WorkflowSchema.parse(content));\n\n if (!obj) {\n return deps;\n }\n\n // composite action\n if ('runs' in obj && obj.runs.steps) {\n extractSteps(obj.runs.steps, deps);\n } else if ('jobs' in obj) {\n for (const job of Object.values(obj.jobs)) {\n if (job.container) {\n const dep = getDep(job.container, true, config.registryAliases);\n if (dep) {\n dep.depType = 'container';\n deps.push(dep);\n }\n }\n\n for (const service of job.services) {\n const dep = getDep(service, true, config.registryAliases);\n if (dep) {\n dep.depType = 'service';\n deps.push(dep);\n }\n }\n\n for (const runner of job['runs-on']) {\n const dep = extractRunner(runner);\n if (dep) {\n deps.push(dep);\n }\n }\n\n extractSteps(job.steps, deps);\n }\n }\n\n return deps;\n}\n\nexport function extractPackageFile(\n content: string,\n packageFile: string,\n config: ExtractConfig = {}, // TODO: enforce ExtractConfig\n): PackageFileContent | null {\n logger.trace(`github-actions.extractPackageFile(${packageFile})`);\n const deps = [\n ...extractWithRegex(content, config),\n ...extractWithYAMLParser(content, packageFile, config),\n ];\n if (!deps.length) {\n return null;\n }\n return { deps };\n}\n"]}
|
1
|
+
{"version":3,"file":"extract.js","sourceRoot":"","sources":["../../../../lib/modules/manager/github-actions/extract.ts"],"names":[],"mappings":";;AAoQA,gDAcC;;AAlRD,mDAAsD;AACtD,4CAAmD;AACnD,iDAAsD;AACtD,+CAA0D;AAC1D,gEAAsE;AACtE,4DAAkE;AAClE,sEAA4E;AAC5E,oEAA0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AM,CAAC;KACvD,CAAC;IACF,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,EAAE,IAAI,EAAE,CAAC;AAClB,CAAC","sourcesContent":["import { GlobalConfig } from '../../../config/global';\nimport { logger, withMeta } from '../../../logger';\nimport { detectPlatform } from '../../../util/common';\nimport { newlineRegex, regEx } from '../../../util/regex';\nimport { ForgejoTagsDatasource } from '../../datasource/forgejo-tags';\nimport { GiteaTagsDatasource } from '../../datasource/gitea-tags';\nimport { GithubReleasesDatasource } from '../../datasource/github-releases';\nimport { GithubRunnersDatasource } from '../../datasource/github-runners';\nimport { GithubTagsDatasource } from '../../datasource/github-tags';\nimport * as dockerVersioning from '../../versioning/docker';\nimport * as nodeVersioning from '../../versioning/node';\nimport * as npmVersioning from '../../versioning/npm';\nimport { getDep } from '../dockerfile/extract';\nimport type {\n ExtractConfig,\n PackageDependency,\n PackageFileContent,\n} from '../types';\nimport type { Steps } from './schema';\nimport { WorkflowSchema } from './schema';\n\nconst dockerActionRe = regEx(/^\\s+uses\\s*: ['\"]?docker:\\/\\/([^'\"]+)\\s*$/);\nconst actionRe = regEx(\n /^\\s+-?\\s+?uses\\s*: (?<replaceString>['\"]?(?<depName>(?<registryUrl>https:\\/\\/[.\\w-]+\\/)?(?<packageName>[\\w-]+\\/[.\\w-]+))(?<path>\\/.*)?@(?<currentValue>[^\\s'\"]+)['\"]?(?:(?<commentWhiteSpaces>\\s+)#\\s*(((?:renovate\\s*:\\s*)?(?:pin\\s+|tag\\s*=\\s*)?|(?:ratchet:[\\w-]+\\/[.\\w-]+)?)@?(?<tag>([\\w-]*[-/])?v?\\d+(?:\\.\\d+(?:\\.\\d+)?)?)|(?:ratchet:exclude)))?)/,\n);\n\n// SHA1 or SHA256, see https://github.blog/2020-10-19-git-2-29-released/\nconst shaRe = regEx(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/);\nconst shaShortRe = regEx(/^[a-f0-9]{6,7}$/);\n\n// detects if we run against a Github Enterprise Server and adds the URL to the beginning of the registryURLs for looking up Actions\n// This reflects the behavior of how GitHub looks up Actions\n// First on the Enterprise Server, then on GitHub.com\nfunction detectCustomGitHubRegistryUrlsForActions(): PackageDependency {\n const endpoint = GlobalConfig.get('endpoint');\n const registryUrls = ['https://github.com'];\n if (endpoint && GlobalConfig.get('platform') === 'github') {\n const parsedEndpoint = new URL(endpoint);\n\n if (\n parsedEndpoint.host !== 'github.com' &&\n parsedEndpoint.host !== 'api.github.com'\n ) {\n registryUrls.unshift(\n `${parsedEndpoint.protocol}//${parsedEndpoint.host}`,\n );\n return { registryUrls };\n }\n }\n return {};\n}\n\nfunction extractWithRegex(\n content: string,\n config: ExtractConfig,\n): PackageDependency[] {\n const customRegistryUrlsPackageDependency =\n detectCustomGitHubRegistryUrlsForActions();\n logger.trace('github-actions.extractWithRegex()');\n const deps: PackageDependency[] = [];\n for (const line of content.split(newlineRegex)) {\n if (line.trim().startsWith('#')) {\n continue;\n }\n\n const dockerMatch = dockerActionRe.exec(line);\n if (dockerMatch) {\n const [, currentFrom] = dockerMatch;\n const dep = getDep(currentFrom, true, config.registryAliases);\n dep.depType = 'docker';\n deps.push(dep);\n continue;\n }\n\n const tagMatch = actionRe.exec(line);\n if (tagMatch?.groups) {\n const {\n depName,\n packageName,\n currentValue,\n path = '',\n tag,\n replaceString,\n registryUrl = '',\n commentWhiteSpaces = ' ',\n } = tagMatch.groups;\n let quotes = '';\n if (replaceString.includes(\"'\")) {\n quotes = \"'\";\n }\n if (replaceString.includes('\"')) {\n quotes = '\"';\n }\n const dep: PackageDependency = {\n depName,\n ...(packageName !== depName && { packageName }),\n commitMessageTopic: '{{{depName}}} action',\n datasource: GithubTagsDatasource.id,\n versioning: dockerVersioning.id,\n depType: 'action',\n replaceString,\n autoReplaceStringTemplate: `${quotes}{{depName}}${path}@{{#if newDigest}}{{newDigest}}${quotes}{{#if newValue}}${commentWhiteSpaces}# {{newValue}}{{/if}}{{/if}}{{#unless newDigest}}{{newValue}}${quotes}{{/unless}}`,\n ...(registryUrl\n ? detectDatasource(registryUrl)\n : customRegistryUrlsPackageDependency),\n };\n if (shaRe.test(currentValue)) {\n dep.currentValue = tag;\n dep.currentDigest = currentValue;\n } else if (shaShortRe.test(currentValue)) {\n dep.currentValue = tag;\n dep.currentDigestShort = currentValue;\n } else {\n dep.currentValue = currentValue;\n }\n deps.push(dep);\n }\n }\n return deps;\n}\n\nfunction detectDatasource(registryUrl: string): PackageDependency {\n const platform = detectPlatform(registryUrl);\n\n switch (platform) {\n case 'forgejo':\n return {\n registryUrls: [registryUrl],\n datasource: ForgejoTagsDatasource.id,\n };\n case 'gitea':\n return {\n registryUrls: [registryUrl],\n datasource: GiteaTagsDatasource.id,\n };\n case 'github':\n return { registryUrls: [registryUrl] };\n }\n\n return {\n skipReason: 'unsupported-url',\n };\n}\n\nconst runnerVersionRegex = regEx(\n /^\\s*(?<depName>[a-zA-Z]+)-(?<currentValue>[^\\s]+)/,\n);\n\nfunction extractRunner(runner: string): PackageDependency | null {\n const runnerVersionGroups = runnerVersionRegex.exec(runner)?.groups;\n if (!runnerVersionGroups) {\n return null;\n }\n\n const { depName, currentValue } = runnerVersionGroups;\n\n if (!GithubRunnersDatasource.isValidRunner(depName, currentValue)) {\n return null;\n }\n\n const dependency: PackageDependency = {\n depName,\n currentValue,\n replaceString: `${depName}-${currentValue}`,\n depType: 'github-runner',\n datasource: GithubRunnersDatasource.id,\n autoReplaceStringTemplate: '{{depName}}-{{newValue}}',\n };\n\n if (!dockerVersioning.api.isValid(currentValue)) {\n dependency.skipReason = 'invalid-version';\n }\n\n return dependency;\n}\n\nconst versionedActions: Record<string, string> = {\n go: npmVersioning.id,\n node: nodeVersioning.id,\n python: npmVersioning.id,\n // Not covered yet because they use different datasources/packageNames:\n // - dotnet\n // - java\n};\n\nfunction extractSteps(\n steps: Steps[],\n deps: PackageDependency<Record<string, any>>[],\n): void {\n for (const step of steps) {\n for (const [action, versioning] of Object.entries(versionedActions)) {\n const actionName = `actions/setup-${action}`;\n if (step.uses === actionName || step.uses?.startsWith(`${actionName}@`)) {\n const fieldName = `${action}-version`;\n const currentValue = step.with?.[fieldName];\n if (currentValue) {\n deps.push({\n datasource: GithubReleasesDatasource.id,\n depName: action,\n packageName: `actions/${action}-versions`,\n versioning,\n extractVersion: '^(?<version>\\\\d+\\\\.\\\\d+\\\\.\\\\d+)(-\\\\d+)?$', // Actions release tags are like 1.24.1-13667719799\n currentValue,\n depType: 'uses-with',\n });\n }\n }\n }\n }\n}\n\nfunction extractWithYAMLParser(\n content: string,\n packageFile: string,\n config: ExtractConfig,\n): PackageDependency[] {\n logger.trace('github-actions.extractWithYAMLParser()');\n const deps: PackageDependency[] = [];\n\n const obj = withMeta({ packageFile }, () => WorkflowSchema.parse(content));\n\n if (!obj) {\n return deps;\n }\n\n // composite action\n if ('runs' in obj && obj.runs.steps) {\n extractSteps(obj.runs.steps, deps);\n } else if ('jobs' in obj) {\n for (const job of Object.values(obj.jobs)) {\n if (job.container) {\n const dep = getDep(job.container, true, config.registryAliases);\n if (dep) {\n dep.depType = 'container';\n deps.push(dep);\n }\n }\n\n for (const service of job.services) {\n const dep = getDep(service, true, config.registryAliases);\n if (dep) {\n dep.depType = 'service';\n deps.push(dep);\n }\n }\n\n for (const runner of job['runs-on']) {\n const dep = extractRunner(runner);\n if (dep) {\n deps.push(dep);\n }\n }\n\n extractSteps(job.steps, deps);\n }\n }\n\n return deps;\n}\n\nexport function extractPackageFile(\n content: string,\n packageFile: string,\n config: ExtractConfig = {}, // TODO: enforce ExtractConfig\n): PackageFileContent | null {\n logger.trace(`github-actions.extractPackageFile(${packageFile})`);\n const deps = [\n ...extractWithRegex(content, config),\n ...extractWithYAMLParser(content, packageFile, config),\n ];\n if (!deps.length) {\n return null;\n }\n return { deps };\n}\n"]}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import type { Platform } from './types';
|
2
|
-
declare const api: Map<"azure" | "bitbucket" | "bitbucket-server" | "codecommit" | "gerrit" | "gitea" | "github" | "gitlab" | "local", Platform>;
|
2
|
+
declare const api: Map<"azure" | "bitbucket" | "bitbucket-server" | "codecommit" | "forgejo" | "gerrit" | "gitea" | "github" | "gitlab" | "local", Platform>;
|
3
3
|
export default api;
|
@@ -5,6 +5,7 @@ const azure = tslib_1.__importStar(require("./azure"));
|
|
5
5
|
const bitbucket = tslib_1.__importStar(require("./bitbucket"));
|
6
6
|
const bitbucketServer = tslib_1.__importStar(require("./bitbucket-server"));
|
7
7
|
const codecommit = tslib_1.__importStar(require("./codecommit"));
|
8
|
+
const forgejo = tslib_1.__importStar(require("./forgejo"));
|
8
9
|
const gerrit = tslib_1.__importStar(require("./gerrit"));
|
9
10
|
const gitea = tslib_1.__importStar(require("./gitea"));
|
10
11
|
const github = tslib_1.__importStar(require("./github"));
|
@@ -16,6 +17,7 @@ api.set(azure.id, azure);
|
|
16
17
|
api.set(bitbucket.id, bitbucket);
|
17
18
|
api.set(bitbucketServer.id, bitbucketServer);
|
18
19
|
api.set(codecommit.id, codecommit);
|
20
|
+
api.set(forgejo.id, forgejo);
|
19
21
|
api.set(gerrit.id, gerrit);
|
20
22
|
api.set(gitea.id, gitea);
|
21
23
|
api.set(github.id, github);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../lib/modules/platform/api.ts"],"names":[],"mappings":";;;AACA,uDAAiC;AACjC,+DAAyC;AACzC,4EAAsD;AACtD,iEAA2C;AAC3C,yDAAmC;AACnC,uDAAiC;AACjC,yDAAmC;AACnC,yDAAmC;AACnC,uDAAiC;AAGjC,MAAM,GAAG,GAAG,IAAI,GAAG,EAAwB,CAAC;AAC5C,kBAAe,GAAG,CAAC;AAEnB,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;AACzB,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;AACjC,GAAG,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC;AAC7C,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;AACnC,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;AAC3B,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;AACzB,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;AAC3B,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;AAC3B,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC","sourcesContent":["import type { PlatformId } from '../../constants';\nimport * as azure from './azure';\nimport * as bitbucket from './bitbucket';\nimport * as bitbucketServer from './bitbucket-server';\nimport * as codecommit from './codecommit';\nimport * as gerrit from './gerrit';\nimport * as gitea from './gitea';\nimport * as github from './github';\nimport * as gitlab from './gitlab';\nimport * as local from './local';\nimport type { Platform } from './types';\n\nconst api = new Map<PlatformId, Platform>();\nexport default api;\n\napi.set(azure.id, azure);\napi.set(bitbucket.id, bitbucket);\napi.set(bitbucketServer.id, bitbucketServer);\napi.set(codecommit.id, codecommit);\napi.set(gerrit.id, gerrit);\napi.set(gitea.id, gitea);\napi.set(github.id, github);\napi.set(gitlab.id, gitlab);\napi.set(local.id, local);\n"]}
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../lib/modules/platform/api.ts"],"names":[],"mappings":";;;AACA,uDAAiC;AACjC,+DAAyC;AACzC,4EAAsD;AACtD,iEAA2C;AAC3C,2DAAqC;AACrC,yDAAmC;AACnC,uDAAiC;AACjC,yDAAmC;AACnC,yDAAmC;AACnC,uDAAiC;AAGjC,MAAM,GAAG,GAAG,IAAI,GAAG,EAAwB,CAAC;AAC5C,kBAAe,GAAG,CAAC;AAEnB,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;AACzB,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,CAAC;AACjC,GAAG,CAAC,GAAG,CAAC,eAAe,CAAC,EAAE,EAAE,eAAe,CAAC,CAAC;AAC7C,GAAG,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;AACnC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;AAC7B,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;AAC3B,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;AACzB,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;AAC3B,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;AAC3B,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC","sourcesContent":["import type { PlatformId } from '../../constants';\nimport * as azure from './azure';\nimport * as bitbucket from './bitbucket';\nimport * as bitbucketServer from './bitbucket-server';\nimport * as codecommit from './codecommit';\nimport * as forgejo from './forgejo';\nimport * as gerrit from './gerrit';\nimport * as gitea from './gitea';\nimport * as github from './github';\nimport * as gitlab from './gitlab';\nimport * as local from './local';\nimport type { Platform } from './types';\n\nconst api = new Map<PlatformId, Platform>();\nexport default api;\n\napi.set(azure.id, azure);\napi.set(bitbucket.id, bitbucket);\napi.set(bitbucketServer.id, bitbucketServer);\napi.set(codecommit.id, codecommit);\napi.set(forgejo.id, forgejo);\napi.set(gerrit.id, gerrit);\napi.set(gitea.id, gitea);\napi.set(github.id, github);\napi.set(gitlab.id, gitlab);\napi.set(local.id, local);\n"]}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import type { BranchStatus } from '../../../types';
|
2
|
+
import type { ForgejoHttpOptions } from '../../../util/http/forgejo';
|
3
|
+
import { ForgejoHttp } from '../../../util/http/forgejo';
|
4
|
+
import type { Branch, CombinedCommitStatus, Comment, CommitStatus, CommitStatusCreateParams, CommitStatusType, Issue, IssueCreateParams, IssueSearchParams, IssueUpdateLabelsParams, IssueUpdateParams, Label, PR, PRCreateParams, PRMergeParams, PRUpdateParams, PrReviewersParams, Repo, RepoContents, RepoSearchParams, User } from './types';
|
5
|
+
export declare const forgejoHttp: ForgejoHttp;
|
6
|
+
export declare function getCurrentUser(options?: ForgejoHttpOptions): Promise<User>;
|
7
|
+
export declare function getVersion(options?: ForgejoHttpOptions): Promise<string>;
|
8
|
+
export declare function searchRepos(params: RepoSearchParams, options?: ForgejoHttpOptions): Promise<Repo[]>;
|
9
|
+
export declare function orgListRepos(organization: string, options?: ForgejoHttpOptions): Promise<Repo[]>;
|
10
|
+
export declare function getRepo(repoPath: string, options?: ForgejoHttpOptions): Promise<Repo>;
|
11
|
+
export declare function getRepoContents(repoPath: string, filePath: string, ref?: string | null, options?: ForgejoHttpOptions): Promise<RepoContents>;
|
12
|
+
export declare function createPR(repoPath: string, params: PRCreateParams, options?: ForgejoHttpOptions): Promise<PR>;
|
13
|
+
export declare function updatePR(repoPath: string, idx: number, params: PRUpdateParams, options?: ForgejoHttpOptions): Promise<PR>;
|
14
|
+
export declare function closePR(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<void>;
|
15
|
+
export declare function mergePR(repoPath: string, idx: number, params: PRMergeParams, options?: ForgejoHttpOptions): Promise<void>;
|
16
|
+
export declare function getPR(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<PR>;
|
17
|
+
export declare function getPRByBranch(repoPath: string, base: string, head: string, options?: ForgejoHttpOptions): Promise<PR | null>;
|
18
|
+
export declare function requestPrReviewers(repoPath: string, idx: number, params: PrReviewersParams, options?: ForgejoHttpOptions): Promise<void>;
|
19
|
+
export declare function createIssue(repoPath: string, params: IssueCreateParams, options?: ForgejoHttpOptions): Promise<Issue>;
|
20
|
+
export declare function updateIssue(repoPath: string, idx: number, params: IssueUpdateParams, options?: ForgejoHttpOptions): Promise<Issue>;
|
21
|
+
export declare function updateIssueLabels(repoPath: string, idx: number, params: IssueUpdateLabelsParams, options?: ForgejoHttpOptions): Promise<Label[]>;
|
22
|
+
export declare function closeIssue(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<void>;
|
23
|
+
export declare function searchIssues(repoPath: string, params: IssueSearchParams, options?: ForgejoHttpOptions): Promise<Issue[]>;
|
24
|
+
export declare function getIssue(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<Issue>;
|
25
|
+
export declare function getRepoLabels(repoPath: string, options?: ForgejoHttpOptions): Promise<Label[]>;
|
26
|
+
export declare function getOrgLabels(orgName: string, options?: ForgejoHttpOptions): Promise<Label[]>;
|
27
|
+
export declare function unassignLabel(repoPath: string, issue: number, label: number, options?: ForgejoHttpOptions): Promise<void>;
|
28
|
+
export declare function createComment(repoPath: string, issue: number, body: string, options?: ForgejoHttpOptions): Promise<Comment>;
|
29
|
+
export declare function updateComment(repoPath: string, idx: number, body: string, options?: ForgejoHttpOptions): Promise<Comment>;
|
30
|
+
export declare function deleteComment(repoPath: string, idx: number, options?: ForgejoHttpOptions): Promise<void>;
|
31
|
+
export declare function getComments(repoPath: string, issue: number, options?: ForgejoHttpOptions): Promise<Comment[]>;
|
32
|
+
export declare function createCommitStatus(repoPath: string, branchCommit: string, params: CommitStatusCreateParams, options?: ForgejoHttpOptions): Promise<CommitStatus>;
|
33
|
+
export declare const forgejoToRenovateStatusMapping: Record<CommitStatusType, BranchStatus | null>;
|
34
|
+
export declare const renovateToForgejoStatusMapping: Record<BranchStatus, CommitStatusType>;
|
35
|
+
export declare function getCombinedCommitStatus(repoPath: string, branchName: string, options?: ForgejoHttpOptions): Promise<CombinedCommitStatus>;
|
36
|
+
export declare function getBranch(repoPath: string, branchName: string, options?: ForgejoHttpOptions): Promise<Branch>;
|