mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-18 01:42:34 +00:00
chore(release): merge main (eca6de43e4)
This commit is contained in:
commit
a51adfe00b
6 changed files with 83 additions and 52 deletions
24
README.md
24
README.md
|
|
@ -161,6 +161,30 @@ module.exports = {
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Passing other environment variables
|
||||||
|
|
||||||
|
If you want to pass other variables to the Docker container use the `env-regex` input to override the regular expression that is used to allow environment variables.
|
||||||
|
|
||||||
|
In your workflow pass the environment variable and whitelist it by specifying the `env-regex`:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
....
|
||||||
|
jobs:
|
||||||
|
renovate:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3.3.0
|
||||||
|
- name: Self-hosted Renovate
|
||||||
|
uses: renovatebot/github-action@v34.82.0
|
||||||
|
with:
|
||||||
|
configurationFile: example/renovate-config.js
|
||||||
|
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||||
|
env-regex: "^(?:RENOVATE_\\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS|AWS_TOKEN)$"
|
||||||
|
env:
|
||||||
|
AWS_TOKEN: ${{ secrets.AWS_TOKEN }}
|
||||||
|
```
|
||||||
|
|
||||||
## Troubleshooting
|
## Troubleshooting
|
||||||
|
|
||||||
### Debug logging
|
### Debug logging
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,11 @@ inputs:
|
||||||
Use a lightweight renovate container without any third-party binaries.
|
Use a lightweight renovate container without any third-party binaries.
|
||||||
Defaults to true if not set.
|
Defaults to true if not set.
|
||||||
required: false
|
required: false
|
||||||
|
env-regex:
|
||||||
|
description: |
|
||||||
|
Override the environment variables which will be passsed into the renovate container.
|
||||||
|
Defaults to `^(?:RENOVATE_\\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS)$`
|
||||||
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: node16
|
using: node16
|
||||||
main: dist/index.js
|
main: dist/index.js
|
||||||
|
|
|
||||||
|
|
@ -43,8 +43,8 @@
|
||||||
"@commitlint/cli": "17.4.2",
|
"@commitlint/cli": "17.4.2",
|
||||||
"@commitlint/config-conventional": "17.4.2",
|
"@commitlint/config-conventional": "17.4.2",
|
||||||
"@types/node": "16.18.12",
|
"@types/node": "16.18.12",
|
||||||
"@typescript-eslint/eslint-plugin": "5.50.0",
|
"@typescript-eslint/eslint-plugin": "5.51.0",
|
||||||
"@typescript-eslint/parser": "5.50.0",
|
"@typescript-eslint/parser": "5.51.0",
|
||||||
"@vercel/ncc": "0.36.1",
|
"@vercel/ncc": "0.36.1",
|
||||||
"eslint": "8.33.0",
|
"eslint": "8.33.0",
|
||||||
"eslint-config-prettier": "8.6.0",
|
"eslint-config-prettier": "8.6.0",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import type { Input } from './input';
|
import type { Input } from './input';
|
||||||
|
|
||||||
// renovate: datasource=docker depName=renovate/renovate versioning=docker
|
// renovate: datasource=docker depName=renovate/renovate versioning=docker
|
||||||
const tag = '34.132.1-slim';
|
const tag = '34.136.0-slim';
|
||||||
|
|
||||||
class Docker {
|
class Docker {
|
||||||
private static readonly repository = 'renovate/renovate';
|
private static readonly repository = 'renovate/renovate';
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,11 @@ class Input {
|
||||||
private readonly _configurationFile: Readonly<EnvironmentVariable>;
|
private readonly _configurationFile: Readonly<EnvironmentVariable>;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
const envRegexInput = core.getInput('env-regex');
|
||||||
|
const envRegex = envRegexInput ? new RegExp(envRegexInput) : this.options.envRegex;
|
||||||
this._environmentVariables = new Map(
|
this._environmentVariables = new Map(
|
||||||
Object.entries(process.env).filter(([key]) =>
|
Object.entries(process.env).filter(([key]) =>
|
||||||
this.options.envRegex.test(key)
|
envRegex.test(key)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
96
yarn.lock
96
yarn.lock
|
|
@ -346,14 +346,14 @@
|
||||||
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.12.tgz#920447fdd78d76b19de0438b7f60df3c4a80bf1c"
|
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.12.tgz#920447fdd78d76b19de0438b7f60df3c4a80bf1c"
|
||||||
integrity sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A==
|
integrity sha512-WwA1MW0++RfXmCr12xeYOOC5baSC9mSb0ZqCquFzKhcoF4TvHu5MKOuXsncgZcpVFhB1pXd5hZmM0ryAoCp12A==
|
||||||
|
|
||||||
"@typescript-eslint/eslint-plugin@5.50.0":
|
"@typescript-eslint/eslint-plugin@5.51.0":
|
||||||
version "5.50.0"
|
version "5.51.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.50.0.tgz#fb48c31cadc853ffc1dc35373f56b5e2a8908fe9"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.51.0.tgz#da3f2819633061ced84bb82c53bba45a6fe9963a"
|
||||||
integrity sha512-vwksQWSFZiUhgq3Kv7o1Jcj0DUNylwnIlGvKvLLYsq8pAWha6/WCnXUeaSoNNha/K7QSf2+jvmkxggC1u3pIwQ==
|
integrity sha512-wcAwhEWm1RgNd7dxD/o+nnLW8oH+6RK1OGnmbmkj/GGoDPV1WWMVP0FXYQBivKHdwM1pwii3bt//RC62EriIUQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/scope-manager" "5.50.0"
|
"@typescript-eslint/scope-manager" "5.51.0"
|
||||||
"@typescript-eslint/type-utils" "5.50.0"
|
"@typescript-eslint/type-utils" "5.51.0"
|
||||||
"@typescript-eslint/utils" "5.50.0"
|
"@typescript-eslint/utils" "5.51.0"
|
||||||
debug "^4.3.4"
|
debug "^4.3.4"
|
||||||
grapheme-splitter "^1.0.4"
|
grapheme-splitter "^1.0.4"
|
||||||
ignore "^5.2.0"
|
ignore "^5.2.0"
|
||||||
|
|
@ -362,72 +362,72 @@
|
||||||
semver "^7.3.7"
|
semver "^7.3.7"
|
||||||
tsutils "^3.21.0"
|
tsutils "^3.21.0"
|
||||||
|
|
||||||
"@typescript-eslint/parser@5.50.0":
|
"@typescript-eslint/parser@5.51.0":
|
||||||
version "5.50.0"
|
version "5.51.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.50.0.tgz#a33f44b2cc83d1b7176ec854fbecd55605b0b032"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.51.0.tgz#2d74626652096d966ef107f44b9479f02f51f271"
|
||||||
integrity sha512-KCcSyNaogUDftK2G9RXfQyOCt51uB5yqC6pkUYqhYh8Kgt+DwR5M0EwEAxGPy/+DH6hnmKeGsNhiZRQxjH71uQ==
|
integrity sha512-fEV0R9gGmfpDeRzJXn+fGQKcl0inIeYobmmUWijZh9zA7bxJ8clPhV9up2ZQzATxAiFAECqPQyMDB4o4B81AaA==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/scope-manager" "5.50.0"
|
"@typescript-eslint/scope-manager" "5.51.0"
|
||||||
"@typescript-eslint/types" "5.50.0"
|
"@typescript-eslint/types" "5.51.0"
|
||||||
"@typescript-eslint/typescript-estree" "5.50.0"
|
"@typescript-eslint/typescript-estree" "5.51.0"
|
||||||
debug "^4.3.4"
|
debug "^4.3.4"
|
||||||
|
|
||||||
"@typescript-eslint/scope-manager@5.50.0":
|
"@typescript-eslint/scope-manager@5.51.0":
|
||||||
version "5.50.0"
|
version "5.51.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.50.0.tgz#90b8a3b337ad2c52bbfe4eac38f9164614e40584"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.51.0.tgz#ad3e3c2ecf762d9a4196c0fbfe19b142ac498990"
|
||||||
integrity sha512-rt03kaX+iZrhssaT974BCmoUikYtZI24Vp/kwTSy841XhiYShlqoshRFDvN1FKKvU2S3gK+kcBW1EA7kNUrogg==
|
integrity sha512-gNpxRdlx5qw3yaHA0SFuTjW4rxeYhpHxt491PEcKF8Z6zpq0kMhe0Tolxt0qjlojS+/wArSDlj/LtE69xUJphQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/types" "5.50.0"
|
"@typescript-eslint/types" "5.51.0"
|
||||||
"@typescript-eslint/visitor-keys" "5.50.0"
|
"@typescript-eslint/visitor-keys" "5.51.0"
|
||||||
|
|
||||||
"@typescript-eslint/type-utils@5.50.0":
|
"@typescript-eslint/type-utils@5.51.0":
|
||||||
version "5.50.0"
|
version "5.51.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.50.0.tgz#509d5cc9728d520008f7157b116a42c5460e7341"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.51.0.tgz#7af48005531700b62a20963501d47dfb27095988"
|
||||||
integrity sha512-dcnXfZ6OGrNCO7E5UY/i0ktHb7Yx1fV6fnQGGrlnfDhilcs6n19eIRcvLBqx6OQkrPaFlDPk3OJ0WlzQfrV0bQ==
|
integrity sha512-QHC5KKyfV8sNSyHqfNa0UbTbJ6caB8uhcx2hYcWVvJAZYJRBo5HyyZfzMdRx8nvS+GyMg56fugMzzWnojREuQQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/typescript-estree" "5.50.0"
|
"@typescript-eslint/typescript-estree" "5.51.0"
|
||||||
"@typescript-eslint/utils" "5.50.0"
|
"@typescript-eslint/utils" "5.51.0"
|
||||||
debug "^4.3.4"
|
debug "^4.3.4"
|
||||||
tsutils "^3.21.0"
|
tsutils "^3.21.0"
|
||||||
|
|
||||||
"@typescript-eslint/types@5.50.0":
|
"@typescript-eslint/types@5.51.0":
|
||||||
version "5.50.0"
|
version "5.51.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.50.0.tgz#c461d3671a6bec6c2f41f38ed60bd87aa8a30093"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.51.0.tgz#e7c1622f46c7eea7e12bbf1edfb496d4dec37c90"
|
||||||
integrity sha512-atruOuJpir4OtyNdKahiHZobPKFvZnBnfDiyEaBf6d9vy9visE7gDjlmhl+y29uxZ2ZDgvXijcungGFjGGex7w==
|
integrity sha512-SqOn0ANn/v6hFn0kjvLwiDi4AzR++CBZz0NV5AnusT2/3y32jdc0G4woXPWHCumWtUXZKPAS27/9vziSsC9jnw==
|
||||||
|
|
||||||
"@typescript-eslint/typescript-estree@5.50.0":
|
"@typescript-eslint/typescript-estree@5.51.0":
|
||||||
version "5.50.0"
|
version "5.51.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.50.0.tgz#0b9b82975bdfa40db9a81fdabc7f93396867ea97"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.51.0.tgz#0ec8170d7247a892c2b21845b06c11eb0718f8de"
|
||||||
integrity sha512-Gq4zapso+OtIZlv8YNAStFtT6d05zyVCK7Fx3h5inlLBx2hWuc/0465C2mg/EQDDU2LKe52+/jN4f0g9bd+kow==
|
integrity sha512-TSkNupHvNRkoH9FMA3w7TazVFcBPveAAmb7Sz+kArY6sLT86PA5Vx80cKlYmd8m3Ha2SwofM1KwraF24lM9FvA==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/types" "5.50.0"
|
"@typescript-eslint/types" "5.51.0"
|
||||||
"@typescript-eslint/visitor-keys" "5.50.0"
|
"@typescript-eslint/visitor-keys" "5.51.0"
|
||||||
debug "^4.3.4"
|
debug "^4.3.4"
|
||||||
globby "^11.1.0"
|
globby "^11.1.0"
|
||||||
is-glob "^4.0.3"
|
is-glob "^4.0.3"
|
||||||
semver "^7.3.7"
|
semver "^7.3.7"
|
||||||
tsutils "^3.21.0"
|
tsutils "^3.21.0"
|
||||||
|
|
||||||
"@typescript-eslint/utils@5.50.0":
|
"@typescript-eslint/utils@5.51.0":
|
||||||
version "5.50.0"
|
version "5.51.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.50.0.tgz#807105f5ffb860644d30d201eefad7017b020816"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.51.0.tgz#074f4fabd5b12afe9c8aa6fdee881c050f8b4d47"
|
||||||
integrity sha512-v/AnUFImmh8G4PH0NDkf6wA8hujNNcrwtecqW4vtQ1UOSNBaZl49zP1SHoZ/06e+UiwzHpgb5zP5+hwlYYWYAw==
|
integrity sha512-76qs+5KWcaatmwtwsDJvBk4H76RJQBFe+Gext0EfJdC3Vd2kpY2Pf//OHHzHp84Ciw0/rYoGTDnIAr3uWhhJYw==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@types/json-schema" "^7.0.9"
|
"@types/json-schema" "^7.0.9"
|
||||||
"@types/semver" "^7.3.12"
|
"@types/semver" "^7.3.12"
|
||||||
"@typescript-eslint/scope-manager" "5.50.0"
|
"@typescript-eslint/scope-manager" "5.51.0"
|
||||||
"@typescript-eslint/types" "5.50.0"
|
"@typescript-eslint/types" "5.51.0"
|
||||||
"@typescript-eslint/typescript-estree" "5.50.0"
|
"@typescript-eslint/typescript-estree" "5.51.0"
|
||||||
eslint-scope "^5.1.1"
|
eslint-scope "^5.1.1"
|
||||||
eslint-utils "^3.0.0"
|
eslint-utils "^3.0.0"
|
||||||
semver "^7.3.7"
|
semver "^7.3.7"
|
||||||
|
|
||||||
"@typescript-eslint/visitor-keys@5.50.0":
|
"@typescript-eslint/visitor-keys@5.51.0":
|
||||||
version "5.50.0"
|
version "5.51.0"
|
||||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.50.0.tgz#b752ffc143841f3d7bc57d6dd01ac5c40f8c4903"
|
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.51.0.tgz#c0147dd9a36c0de758aaebd5b48cae1ec59eba87"
|
||||||
integrity sha512-cdMeD9HGu6EXIeGOh2yVW6oGf9wq8asBgZx7nsR/D36gTfQ0odE5kcRYe5M81vjEFAcPeugXrHg78Imu55F6gg==
|
integrity sha512-Oh2+eTdjHjOFjKA27sxESlA87YPSOJafGCR0md5oeMdh1ZcCfAGCIOL216uTBAkAIptvLIfKQhl7lHxMJet4GQ==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@typescript-eslint/types" "5.50.0"
|
"@typescript-eslint/types" "5.51.0"
|
||||||
eslint-visitor-keys "^3.3.0"
|
eslint-visitor-keys "^3.3.0"
|
||||||
|
|
||||||
"@vercel/ncc@0.36.1":
|
"@vercel/ncc@0.36.1":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue