mirror of
https://github.com/renovatebot/github-action.git
synced 2026-12-06 03:42:57 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6d01ca039 | ||
|
|
8867915f0f | ||
|
|
14cda6233a | ||
|
|
b2202a0d76 | ||
|
|
12013e0fba | ||
|
|
74bb419260 | ||
|
|
6e4b56e5e3 | ||
|
|
666a2087e8 | ||
|
|
7d69cd2599 | ||
|
|
53f5229e3e | ||
|
|
371c73e8fc | ||
|
|
8e4d04d6fc | ||
|
|
e72c29f1b0 | ||
|
|
a69c5ecff9 | ||
|
|
295ecdd8cc | ||
|
|
35aeed9f81 | ||
|
|
5174071075 | ||
|
|
6071691ec6 | ||
|
|
a86aa9018d | ||
|
|
2a17e6d503 | ||
|
|
130a18f40d | ||
|
|
dc0acd68cd | ||
|
|
1eac5d2b20 | ||
|
|
1be938d0fa | ||
|
|
f8be0aea65 | ||
|
|
46abe4adb0 | ||
|
|
4d151cebf0 | ||
|
|
199b25c5d7 | ||
|
|
1c96c104d0 | ||
|
|
cdc19d6203 | ||
|
|
ce94f138a7 | ||
|
|
e40f3217cd | ||
|
|
fefc1f9aee | ||
|
|
0f818bf9e2 | ||
|
|
92712ddecd | ||
|
|
3045e86700 | ||
|
|
30fa1dd53a | ||
|
|
66aac79f2b | ||
|
|
3ac895b8a5 | ||
|
|
00a121b1e4 | ||
|
|
15174944fd | ||
|
|
adb2c26afb | ||
|
|
70a9cce55f | ||
|
|
2d2680301d | ||
|
|
d54d7e3da0 | ||
|
|
5654fe89cb | ||
|
|
c42ba4823c | ||
|
|
ecb9d99d24 | ||
|
|
c359fbafc0 | ||
|
|
48ddfc3eee | ||
|
|
bcd64ad53e | ||
|
|
74f0a7c3a7 | ||
|
|
602564070b | ||
|
|
7128f954cf | ||
|
|
7bdc8ca397 | ||
|
|
32c916206b | ||
|
|
ff17108d3a | ||
|
|
746c4244eb | ||
|
|
e942993c7e | ||
|
|
89f3fe2cb0 | ||
|
|
5a2721193b | ||
|
|
4f1c97c250 | ||
|
|
dca1a56a26 | ||
|
|
7b58da1026 | ||
|
|
1e4d583a0d | ||
|
|
29cc943113 | ||
|
|
d5381019ea | ||
|
|
6fd1c263e6 | ||
|
|
5f2f44f83f | ||
|
|
494715d408 | ||
|
|
0af61445cb | ||
|
|
330a803aab | ||
|
|
eb473199db | ||
|
|
6b4dd88bac | ||
|
|
ce2481e6e2 | ||
|
|
647843c466 | ||
|
|
ed21f4018a | ||
|
|
7cfafcc02f | ||
|
|
43181a83ed | ||
|
|
fab02561dc | ||
|
|
4162f2fe0a | ||
|
|
dbc0a99554 | ||
|
|
663ba913f2 | ||
|
|
30b4a4a205 | ||
|
|
fec73bbade | ||
|
|
bca4fc9648 | ||
|
|
7dc10fb8b0 | ||
|
|
ba62b4b2d3 | ||
|
|
3503a0383a | ||
|
|
3ab1f675d0 | ||
|
|
971de3b854 | ||
|
|
dfa00fb573 | ||
|
|
91d69b4470 | ||
|
|
68349b4c03 | ||
|
|
e093ba8341 | ||
|
|
827740e9a7 | ||
|
|
3e2652b61f | ||
|
|
bf505ae10f | ||
|
|
5cb49b7067 | ||
|
|
50daa4a9c7 | ||
|
|
5fa278c6eb | ||
|
|
44877bb877 | ||
|
|
93ed634295 | ||
|
|
abea7e63c2 | ||
|
|
20ea328440 | ||
|
|
4a48e198e6 | ||
|
|
9e4cad21de | ||
|
|
acc72df346 | ||
|
|
4fbff66c1a | ||
|
|
b5498fade9 | ||
|
|
97f060d55f | ||
|
|
8dea9309e6 | ||
|
|
30040d810c | ||
|
|
613bfd1813 | ||
|
|
d99f6e5338 | ||
|
|
79c92b5c76 | ||
|
|
e906fde1a4 | ||
|
|
b947ecd7c0 | ||
|
|
ed592cdd50 | ||
|
|
6cea27487f | ||
|
|
4fd38991af | ||
|
|
3c860c2979 | ||
|
|
4b8aefb79b | ||
|
|
25c33a8302 | ||
|
|
d37d3af1bc | ||
|
|
a840a0d79d | ||
|
|
72e1dd6ba9 | ||
|
|
200044145c | ||
|
|
9fffd5bd72 | ||
|
|
bfe7be5d10 | ||
|
|
e6a7bcc3f9 | ||
|
|
60d94c5c6c | ||
|
|
2b0327297b | ||
|
|
2a5f39177f | ||
|
|
3c5d757c59 | ||
|
|
b724e0d016 | ||
|
|
ab95886ce2 | ||
|
|
8a6d1f2468 | ||
|
|
e6185238c2 | ||
|
|
e374a73c4f | ||
|
|
e6bab23e3a | ||
|
|
ed2d1519c4 | ||
|
|
6330119c18 | ||
|
|
0d5f4ab8c4 | ||
|
|
ad9bd0fc30 | ||
|
|
b186e28898 | ||
|
|
4d8124eee7 | ||
|
|
4b3b604c9c | ||
|
|
9a20b05535 | ||
|
|
007c2b9189 | ||
|
|
1ecb73d24c | ||
|
|
f6aae7dcc6 | ||
|
|
16c9a6156a | ||
|
|
5a12aa43c6 | ||
|
|
9c823d4f8f | ||
|
|
786206d717 | ||
|
|
0a71cd809c | ||
|
|
8321fc4974 | ||
|
|
1725a9b837 | ||
|
|
eeb0e0f520 | ||
|
|
c1c0e2cc33 | ||
|
|
9cde53260a | ||
|
|
f963acc930 | ||
|
|
7ab65632bc |
No files matched your search
@@ -33,12 +33,12 @@ runs:
|
||||
}}' >> "$GITHUB_ENV"
|
||||
|
||||
- name: ⚙️ Setup pnpm
|
||||
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
|
||||
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
with:
|
||||
standalone: true
|
||||
|
||||
- name: ⚙️ Setup Node.js ${{ inputs.node-version }}
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
uses: actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce # v7.2.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: ${{ env.CACHE_HIT != 'true' && 'pnpm' || '' }}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# This file is machine-generated by `gh actions-lock`.
|
||||
# Do not edit by hand; run `gh actions-lock` to update.
|
||||
# Docs: https://gh.io/actions-lockfile
|
||||
version: 'v0.0.3'
|
||||
workflows:
|
||||
'.github/workflows/build.yml':
|
||||
- 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
|
||||
- 'actions/checkout@v7.0.1'
|
||||
- 'actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce'
|
||||
- 'pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115'
|
||||
- 'wagoid/commitlint-github-action@v6.2.1'
|
||||
- 'zizmorcore/zizmor-action@v0.9.2'
|
||||
dependencies:
|
||||
'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9':
|
||||
ref: 'v6.1.0'
|
||||
commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
|
||||
owner_id: 44036562
|
||||
repo_id: 215566462
|
||||
'actions/checkout@v7.0.1':
|
||||
ref: 'v7.0.1'
|
||||
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
|
||||
owner_id: 44036562
|
||||
repo_id: 197814629
|
||||
'actions/setup-node@8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce':
|
||||
ref: 'v7.2.0'
|
||||
commit: 'sha1-8fccf151e3ba8038c300f83b40c8fd1e94f9c5ce'
|
||||
owner_id: 44036562
|
||||
repo_id: 189476904
|
||||
'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066':
|
||||
ref: 'v4.39.3'
|
||||
commit: 'sha1-33d7b85da1a04171e211befe2c739303b9a4c066'
|
||||
owner_id: 9919
|
||||
repo_id: 259445878
|
||||
'pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115':
|
||||
ref: 'v6.1.1'
|
||||
commit: 'sha1-73e46992e05b19abd31f2f3c20e0e7370d762115'
|
||||
owner_id: 21320719
|
||||
repo_id: 262289747
|
||||
'wagoid/commitlint-github-action@v6.2.1':
|
||||
ref: 'v6.2.1'
|
||||
commit: 'sha1-b948419dd99f3fd78a6548d48f94e3df7f6bf3ed'
|
||||
owner_id: 7467450
|
||||
repo_id: 212203144
|
||||
'zizmorcore/zizmor-action@v0.9.2':
|
||||
ref: 'v0.9.2'
|
||||
commit: 'sha1-1b4550e929643b8b26a62303c6bd64814271a4f1'
|
||||
owner_id: 210636713
|
||||
repo_id: 985558803
|
||||
uses:
|
||||
- 'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066'
|
||||
+25
-19
@@ -10,7 +10,7 @@ concurrency:
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
RENOVATE_VERSION: 44.199.2 # renovate: datasource=docker depName=ghcr.io/renovatebot/renovate
|
||||
RENOVATE_VERSION: 45.16.0 # renovate: datasource=docker depName=ghcr.io/renovatebot/renovate
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
@@ -18,12 +18,13 @@ jobs:
|
||||
timeout-minutes: 10
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
with:
|
||||
save-cache: true
|
||||
|
||||
@@ -33,14 +34,15 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
filter: blob:none # we don't need all blobs, only the full tree
|
||||
|
||||
- name: Lint commit messages
|
||||
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
|
||||
uses: wagoid/commitlint-github-action@v6.2.1
|
||||
continue-on-error: true
|
||||
|
||||
lint:
|
||||
@@ -51,12 +53,13 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
|
||||
- name: Lint
|
||||
run: pnpm lint
|
||||
@@ -68,14 +71,15 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: Run zizmor
|
||||
uses: zizmorcore/zizmor-action@53290badfa369cb0bf7ad16342cb62c2fa47ac7b # v0.8.0
|
||||
uses: zizmorcore/zizmor-action@v0.9.2
|
||||
with:
|
||||
version: 1.31.1
|
||||
version: 1.33.1
|
||||
|
||||
e2e:
|
||||
needs:
|
||||
@@ -91,12 +95,13 @@ jobs:
|
||||
- example/renovate-config.json
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
@@ -113,14 +118,14 @@ jobs:
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
||||
- name: Renovate test
|
||||
uses: ./
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
configurationFile: ${{ matrix.configurationFile }}
|
||||
|
||||
- name: Renovate test with entrypoint
|
||||
uses: ./
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
@@ -130,7 +135,7 @@ jobs:
|
||||
docker-user: root
|
||||
|
||||
- name: Renovate test with image and digest
|
||||
uses: ./
|
||||
uses: ./ # zizmor: ignore[self-repository] tests the action built in the workspace
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
@@ -141,13 +146,14 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
container:
|
||||
image: ghcr.io/renovatebot/renovate:44.199.2@sha256:0538f498be1b074e2434f8449cab7b2be30f8c0d0baf3b72814010f19db5bcfb
|
||||
image: ghcr.io/renovatebot/renovate:45.16.0@sha256:125f2e3b20e406e7c3393b56b48f6883ed3d4dc8a1bec50c43326a21da932769
|
||||
# github hosted runners are running as `1001:127` (ubuntu:docker)
|
||||
options: -u 1001:0 --group-add 1000 --group-add 12021 --group-add 127
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
- uses: actions/checkout@v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
show-progress: false
|
||||
|
||||
- name: Validate Renovate configuration
|
||||
@@ -173,7 +179,7 @@ jobs:
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
uses: actions/checkout@v7.0.1 # zizmor: ignore[artipacked] pushes the release branch
|
||||
with:
|
||||
fetch-depth: 0 # required for semantic release
|
||||
ref: 'release'
|
||||
@@ -196,7 +202,7 @@ jobs:
|
||||
GH_SHA: ${{ github.sha }}
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
uses: $/.github/actions/setup-node
|
||||
|
||||
- name: Push release branch
|
||||
run: git push origin release:release
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
name: auto-pr
|
||||
|
||||
on:
|
||||
pull_request_target: # zizmor: ignore[dangerous-triggers] -- No checkout, only reviewer assignment
|
||||
types:
|
||||
- opened
|
||||
|
||||
jobs:
|
||||
review:
|
||||
if: github.event.action == 'opened' && !endsWith(github.event.pull_request.user.login, '[bot]')
|
||||
runs-on: ubuntu-24.04
|
||||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: hkusu/review-assign-action@5bee595fdb9765d4a0bd35724b6302fa15569158 # v1.4.0
|
||||
with:
|
||||
reviewers: ${{ vars.REVIEWERS }}
|
||||
max-num-of-reviewers: 2
|
||||
+1
-1
@@ -1 +1 @@
|
||||
24.22.2
|
||||
24.23.0
|
||||
@@ -106,7 +106,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
docker-cmd-file: .github/renovate-entrypoint.sh
|
||||
docker-user: root
|
||||
@@ -149,7 +149,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
docker-volumes: |
|
||||
@@ -205,7 +205,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-image: myproxyhub.domain.com/renovate/renovate
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -222,7 +222,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
@@ -238,7 +238,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-image: ghcr.io/renovatebot/renovate@sha256:0f7ba2b70c5d1a7e2d95b0f6c3d5b4a1e2f6b6a1e2f6b6a1e2f6b6a1e2f6b6a1
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -250,7 +250,7 @@ The Renovate version to use.
|
||||
If omitted the action will use the [`default version`](./action.yml#L28) Docker tag.
|
||||
Check [the available tags on Docker Hub](https://hub.docker.com/r/renovate/renovate/tags).
|
||||
|
||||
This sample will use `ghcr.io/renovatebot/renovate:44.199.2` image.
|
||||
This sample will use `ghcr.io/renovatebot/renovate:45.16.0` image.
|
||||
|
||||
```yml
|
||||
....
|
||||
@@ -261,9 +261,9 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-version: 44.199.2
|
||||
renovate-version: 45.16.0
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
@@ -278,7 +278,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
renovate-version: full
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -313,7 +313,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -326,7 +326,7 @@ If you want to use the Renovate Action on a GitHub Enterprise instance you have
|
||||
```yml
|
||||
....
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -373,7 +373,7 @@ jobs:
|
||||
uses: actions/checkout@v7.0.1
|
||||
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
@@ -388,7 +388,7 @@ For example:
|
||||
|
||||
```yaml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
env:
|
||||
@@ -414,7 +414,7 @@ For example if you wish to pass through some credentials for a [host rule](https
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -437,6 +437,12 @@ For example if you wish to pass through some credentials for a [host rule](https
|
||||
};
|
||||
```
|
||||
|
||||
### User agent
|
||||
|
||||
By default, the Action sets [`RENOVATE_USER_AGENT`](https://docs.renovatebot.com/self-hosted-configuration/#useragent) to `Renovate/{{renovateVersion}} (https://github.com/renovatebot/github-action)`, so that operators of registries can identify traffic coming from this Action.
|
||||
|
||||
To override it, set the `RENOVATE_USER_AGENT` environment variable on the Action step.
|
||||
|
||||
### Passing other environment variables
|
||||
|
||||
There are two ways to pass additional variables through to the Renovate container:
|
||||
@@ -455,7 +461,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.1.0
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -478,7 +484,7 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v7.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
@@ -549,11 +555,11 @@ jobs:
|
||||
sudo chown -R 12021:0 /tmp/renovate/
|
||||
ls -R $cache_dir
|
||||
|
||||
- uses: renovatebot/github-action@v46.3.11
|
||||
- uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: renovate.json5
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
renovate-version: 44.199.2
|
||||
renovate-version: 45.16.0
|
||||
env:
|
||||
# This enables the cache -- if this is set, it's not necessary to add it to renovate.json.
|
||||
RENOVATE_REPOSITORY_CACHE: ${{ github.event.inputs.repoCache || 'enabled' }}
|
||||
@@ -575,7 +581,7 @@ To enable debug logging, add the environment variable `LOG_LEVEL: 'debug'` to th
|
||||
|
||||
```yml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v46.3.11
|
||||
uses: renovatebot/github-action@v48.0.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ inputs:
|
||||
description: |
|
||||
Renovate version to use.
|
||||
required: false
|
||||
default: '44' # renovate
|
||||
default: '45' # renovate
|
||||
renovate-image:
|
||||
description: |
|
||||
Renovate docker image name.
|
||||
|
||||
+12
-12
@@ -35,24 +35,24 @@
|
||||
"@actions/exec": "3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "21.2.4",
|
||||
"@commitlint/config-conventional": "21.2.4",
|
||||
"@commitlint/cli": "21.3.0",
|
||||
"@commitlint/config-conventional": "21.3.0",
|
||||
"@containerbase/oxlint-plugin": "1.1.0",
|
||||
"@semantic-release/git": "11.0.1",
|
||||
"@semantic-release/github": "12.0.10",
|
||||
"@semantic-release/github": "12.0.11",
|
||||
"@semantic-release/npm": "13.2.0",
|
||||
"@tsconfig/node24": "24.0.5",
|
||||
"@tsconfig/strictest": "2.0.8",
|
||||
"@types/node": "24.19.2",
|
||||
"@tsconfig/node24": "24.0.6",
|
||||
"@tsconfig/strictest": "2.0.9",
|
||||
"@types/node": "24.19.4",
|
||||
"conventional-changelog-conventionalcommits": "9.3.1",
|
||||
"esbuild": "0.28.2",
|
||||
"husky": "9.1.7",
|
||||
"lint-staged": "17.6.0",
|
||||
"npm-run-all2": "9.0.4",
|
||||
"oxfmt": "0.74.0",
|
||||
"oxlint": "1.89.0",
|
||||
"oxlint-tsgolint": "7.0.2005",
|
||||
"rimraf": "6.1.3",
|
||||
"lint-staged": "17.6.3",
|
||||
"npm-run-all2": "9.1.0",
|
||||
"oxfmt": "0.80.0",
|
||||
"oxlint": "1.95.0",
|
||||
"oxlint-tsgolint": "7.0.2009",
|
||||
"rimraf": "6.1.4",
|
||||
"semantic-release": "25.0.9",
|
||||
"typescript": "5.9.3"
|
||||
},
|
||||
|
||||
Generated
+405
-406
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -3,7 +3,7 @@ import type { Input } from './input';
|
||||
|
||||
export class Docker {
|
||||
private static readonly image = 'ghcr.io/renovatebot/renovate';
|
||||
private static readonly version = '44'; // renovate
|
||||
private static readonly version = '45'; // renovate
|
||||
|
||||
private readonly fullImageReference: string;
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ import { Input } from './input';
|
||||
|
||||
export class Renovate {
|
||||
static dockerGroupRegex = /^docker:x:(?<groupId>[1-9][0-9]*):/m;
|
||||
private static readonly userAgentKey = 'RENOVATE_USER_AGENT';
|
||||
private static readonly defaultUserAgent =
|
||||
'Renovate/{{renovateVersion}} (https://github.com/renovatebot/github-action)';
|
||||
private configFileMountDir = '/github-action';
|
||||
|
||||
private docker: Docker;
|
||||
@@ -33,6 +36,10 @@ export class Renovate {
|
||||
.map((e) => `--env ${e.key}`)
|
||||
.concat([`--env ${this.input.token.key}=${this.input.token.value} --env FORCE_COLOR=3`]);
|
||||
|
||||
if (!this.input.toEnvironmentVariables().some((e) => e.key === Renovate.userAgentKey)) {
|
||||
dockerArguments.push(`--env "${Renovate.userAgentKey}=${Renovate.defaultUserAgent}"`);
|
||||
}
|
||||
|
||||
const configurationFile = this.input.configurationFile();
|
||||
if (configurationFile !== null) {
|
||||
const baseName = path.basename(configurationFile.value);
|
||||
|
||||
Reference in new issue
Block a user