Compare commits

...

14 commits

Author SHA1 Message Date
HonkingGoose
b133446f15
Merge 9b1dd57ae5 into ab1ed9c421 2024-12-29 20:24:00 +09:00
Anton
ab1ed9c421
feat(preset): Add SlimMessageBus monorepo group (#33315)
Some checks are pending
Build / setup (push) Waiting to run
Build / setup-build (push) Waiting to run
Build / prefetch (push) Blocked by required conditions
Build / lint-eslint (push) Blocked by required conditions
Build / lint-prettier (push) Blocked by required conditions
Build / lint-docs (push) Blocked by required conditions
Build / lint-other (push) Blocked by required conditions
Build / (push) Blocked by required conditions
Build / codecov (push) Blocked by required conditions
Build / coverage-threshold (push) Blocked by required conditions
Build / test-success (push) Blocked by required conditions
Build / build (push) Blocked by required conditions
Build / build-docs (push) Blocked by required conditions
Build / test-e2e (push) Blocked by required conditions
Build / release (push) Blocked by required conditions
Code scanning / CodeQL-Build (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
whitesource-scan / WS_SCAN (push) Waiting to run
2024-12-29 07:11:58 +00:00
RahulGautamSingh
a42069da44
fix(platform/github): use correct url to find pr when only using branch name (#33324) 2024-12-29 06:58:30 +00:00
renovate[bot]
a4042bb863
chore(deps): update dependency memfs to v4.15.1 (#33327)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-29 03:38:46 +00:00
Jade Ferreira
f26181d3ba
feat(preset): fix axis2 monorepo group (#33293) 2024-12-28 08:37:50 +00:00
HonkingGoose
9b1dd57ae5
Merge branch 'main' into docs/30812-update-ignoreScripts-and-allowScripts 2024-12-16 12:18:15 +01:00
HonkingGoose
6b157b229a
Drop draft npm manager only script execution 2024-12-16 12:17:04 +01:00
HonkingGoose
9f701e18fa
Merge branch 'main' into docs/30812-update-ignoreScripts-and-allowScripts 2024-12-04 10:05:27 +01:00
HonkingGoose
02be0406a9
Small tweak to suggestion 2024-10-28 11:07:40 +01:00
HonkingGoose
bacdc86de3
Apply suggestions from code review
Co-authored-by: Rhys Arkins <rhys@arkins.net>
2024-10-28 11:05:17 +01:00
HonkingGoose
5675488f4f
Wrap failing h4 in ignore block for Markdown lint rule 2024-10-28 10:19:05 +01:00
HonkingGoose
0ab9e3ff00
Use h4 sub-heading to try to fix lint error 2024-10-28 10:09:10 +01:00
HonkingGoose
232a12032f
Update configuration-options.md 2024-10-28 09:50:56 +01:00
HonkingGoose
707dbf4206
docs(config options): update ignoreScripts section 2024-10-28 09:36:05 +01:00
6 changed files with 36 additions and 14 deletions

View file

@ -2130,7 +2130,30 @@ In the case that a user is automatically added as reviewer (such as Renovate App
## ignoreScripts
Applicable for npm, bun, Composer and Copier only for now. Set this to `true` if running scripts causes problems.
By default, Renovate will disable package manager scripts.
Allowing packager manager scripts is a risk:
- Untrusted or compromised repository users could use package manager scripts to exploit the system where Renovate runs, and
- Malicious package authors could use scripts to exploit a repository and Renovate system, for example to exfiltrate source code and secrets
<!-- markdownlint-disable MD001 -->
#### No script execution on free Mend-hosted Renovate
The Mend Renovate App does not allow scripts to run.
We do not plan to let users on free tiers run scripts, because the risk of abuse is too high.
#### Renovate Enterprise Cloud can be configured to run scripts
Scripts can be enabled for paying customers on Mend.io hosted apps.
Please ask Mend.io sales about "Renovate Enterprise Cloud".
#### Allowing scripts if self-hosting Renovate
If you are self-hosting Renovate, and want to allow Renovate to run any scripts:
1. Set the self-hosted config option [`allowScripts`](../self-hosted-configuration.md#allowscripts) to `true` in your bot/admin configuration
1. Set `ignoreScripts` to `false` for the package managers you want to allow to run scripts (only works for the supportedManagers listed in the table above)
## ignoreTests

View file

@ -55,10 +55,6 @@
"https://github.com/awslabs/aws-sdk-rust"
],
"awsappsync": "https://github.com/awslabs/aws-mobile-appsync-sdk-js",
"axis2": [
"https://gitbox.apache.org/repos/asf?p=axis-axis2-java-core.git;a=summary",
"https://github.com/apache/axis-axis2-java-core"
],
"azure-functions-dotnet-worker": "https://github.com/Azure/azure-functions-dotnet-worker",
"azure azure-libraries-for-net": "https://github.com/Azure/azure-libraries-for-net",
"azure azure-sdk-for-net": "https://github.com/Azure/azure-sdk-for-net",
@ -509,6 +505,7 @@
"skiasharp": "https://github.com/mono/SkiaSharp",
"slack-net": "https://github.com/soxtoby/SlackNet",
"slf4j": "https://github.com/qos-ch/slf4j",
"slim-message-bus": "https://github.com/zarusz/SlimMessageBus",
"spectre-console": "https://github.com/spectreconsole/spectre.console",
"springfox": "https://github.com/springfox/springfox",
"steeltoe": "https://github.com/SteeltoeOSS/steeltoe",
@ -598,6 +595,7 @@
"apache-poi": "/^org.apache.poi:/",
"aws-java-sdk": "/^com.amazonaws:aws-java-sdk-/",
"aws-java-sdk-v2": "/^software.amazon.awssdk:/",
"axis2": "/^org.apache.axis2:/",
"babel6": "/^babel6$/",
"clarity": ["/^@cds//", "/^@clr//"],
"embroider": "/^@embroider//",

View file

@ -2568,7 +2568,7 @@ describe('modules/platform/github/index', () => {
const scope = httpMock.scope(githubApiHost);
initRepoMock(scope, 'some/repo');
scope
.get('/repos/some/repo/pulls?head=some/repo:branch&state=open')
.get('/repos/some/repo/pulls?head=some:branch&state=open')
.reply(200, [
{
number: 1,
@ -2598,7 +2598,7 @@ describe('modules/platform/github/index', () => {
const scope = httpMock.scope(githubApiHost);
initRepoMock(scope, 'some/repo');
scope
.get('/repos/some/repo/pulls?head=some/repo:branch&state=open')
.get('/repos/some/repo/pulls?head=some:branch&state=open')
.reply(200, []);
await github.initRepo({ repository: 'some/repo' });
const pr = await github.findPr({

View file

@ -855,9 +855,10 @@ export async function findPr({
if (includeOtherAuthors) {
const repo = config.parentRepo ?? config.repository;
const org = repo?.split('/')[0];
// PR might have been created by anyone, so don't use the cached Renovate PR list
const { body: prList } = await githubApi.getJson<GhRestPr[]>(
`repos/${repo}/pulls?head=${repo}:${branchName}&state=open`,
`repos/${repo}/pulls?head=${org}:${branchName}&state=open`,
{ cacheProvider: repoCacheProvider },
);

View file

@ -336,7 +336,7 @@
"jest-mock-extended": "3.0.7",
"jest-snapshot": "29.7.0",
"markdownlint-cli2": "0.16.0",
"memfs": "4.15.0",
"memfs": "4.15.1",
"nock": "13.5.6",
"npm-run-all2": "7.0.2",
"nyc": "17.1.0",

View file

@ -581,8 +581,8 @@ importers:
specifier: 0.16.0
version: 0.16.0
memfs:
specifier: 4.15.0
version: 4.15.0
specifier: 4.15.1
version: 4.15.1
nock:
specifier: 13.5.6
version: 13.5.6
@ -4507,8 +4507,8 @@ packages:
mdurl@2.0.0:
resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==}
memfs@4.15.0:
resolution: {integrity: sha512-q9MmZXd2rRWHS6GU3WEm3HyiXZyyoA1DqdOhEq0lxPBmKb5S7IAOwX0RgUCwJfqjelDCySa5h8ujOy24LqsWcw==}
memfs@4.15.1:
resolution: {integrity: sha512-ufCzgFwiVnR6R9cCYuvwznJdhdYXEvFl0hpnM4cCtVaVkHuqBR+6fo2sqt1SSMdp+uiHw9GyPZr3OMM5tqjSmQ==}
engines: {node: '>= 4.0.0'}
memorystream@0.3.1:
@ -11559,7 +11559,7 @@ snapshots:
mdurl@2.0.0: {}
memfs@4.15.0:
memfs@4.15.1:
dependencies:
'@jsonjoy.com/json-pack': 1.1.1(tslib@2.8.1)
'@jsonjoy.com/util': 1.5.0(tslib@2.8.1)