mirror of
https://github.com/renovatebot/github-action.git
synced 2026-12-06 03:42:57 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ac9d13fb2 |
No files matched your search
@@ -0,0 +1,33 @@
|
||||
module.exports = {
|
||||
extends: [
|
||||
'eslint:recommended',
|
||||
'plugin:@typescript-eslint/eslint-recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'prettier/@typescript-eslint',
|
||||
'plugin:prettier/recommended',
|
||||
],
|
||||
parser: '@typescript-eslint/parser',
|
||||
plugins: ['@typescript-eslint', 'prettier', 'json'],
|
||||
parserOptions: {
|
||||
sourceType: 'module',
|
||||
},
|
||||
env: {
|
||||
es2020: true,
|
||||
node: true,
|
||||
},
|
||||
rules: {
|
||||
'prettier/prettier': 'error',
|
||||
'sort-imports': 'error',
|
||||
},
|
||||
ignorePatterns: [
|
||||
'.git/',
|
||||
'.vscode',
|
||||
'build/',
|
||||
'dist/',
|
||||
'coverage/',
|
||||
'LICENSE.md',
|
||||
'modules/',
|
||||
'node_modules/',
|
||||
'!.*',
|
||||
],
|
||||
};
|
||||
@@ -1,60 +0,0 @@
|
||||
name: 'Setup Node.js'
|
||||
description: 'Setup Node and install dependencies using cache'
|
||||
inputs:
|
||||
save-cache:
|
||||
description: 'Save cache when needed'
|
||||
required: false
|
||||
default: 'false'
|
||||
|
||||
runs:
|
||||
using: 'composite'
|
||||
|
||||
steps:
|
||||
- name: ⚙️ Calculate `CACHE_KEY`
|
||||
shell: bash
|
||||
run: |
|
||||
echo 'CACHE_KEY=node_modules-${{
|
||||
hashFiles('.node-version', 'pnpm-lock.yaml')
|
||||
}}' >> "$GITHUB_ENV"
|
||||
|
||||
- name: ♻️ Restore `node_modules`
|
||||
uses: actions/cache/restore@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
|
||||
id: node-modules-restore
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ env.CACHE_KEY }}
|
||||
enableCrossOsArchive: true
|
||||
|
||||
- name: Calculate `CACHE_HIT`
|
||||
shell: bash
|
||||
run: |
|
||||
echo 'CACHE_HIT=${{
|
||||
(steps.node-modules-restore.outputs.cache-hit == 'true') && 'true' || ''
|
||||
}}' >> "$GITHUB_ENV"
|
||||
|
||||
- name: ⚙️ Setup pnpm
|
||||
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
|
||||
with:
|
||||
standalone: true
|
||||
|
||||
- name: ⚙️ Setup Node.js ${{ inputs.node-version }}
|
||||
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
|
||||
with:
|
||||
node-version-file: .node-version
|
||||
cache: ${{ env.CACHE_HIT != 'true' && 'pnpm' || '' }}
|
||||
|
||||
- name: 📥 Install dependencies
|
||||
if: env.CACHE_HIT != 'true'
|
||||
shell: bash
|
||||
run: pnpm install --frozen-lockfile
|
||||
env:
|
||||
# Other environment variables
|
||||
HUSKY: '0' # By default do not run HUSKY install
|
||||
|
||||
- name: ♻️ Write `node_modules` cache
|
||||
if: inputs.save-cache == 'true' && env.CACHE_HIT != 'true'
|
||||
uses: actions/cache/save@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ env.CACHE_KEY }}
|
||||
enableCrossOsArchive: true
|
||||
+28
-84
@@ -1,97 +1,41 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["github>renovatebot/.github", ":pinDependencies"],
|
||||
"extends": [
|
||||
"config:base",
|
||||
":rebaseStalePrs",
|
||||
":pinDependencies",
|
||||
":masterIssue"
|
||||
],
|
||||
"prCreation": "not-pending",
|
||||
"lockFileMaintenance": {
|
||||
"enabled": true,
|
||||
"masterIssueApproval": true
|
||||
},
|
||||
"major": {
|
||||
"stabilityDays": 3,
|
||||
"masterIssueApproval": true
|
||||
},
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "Update references in Markdown files weekly",
|
||||
"matchFileNames": ["**/*.md"],
|
||||
"extends": ["schedule:weekly"],
|
||||
"automerge": true,
|
||||
"minimumReleaseAge": null,
|
||||
"separateMajorMinor": false,
|
||||
"commitMessageTopic": "references to {{{depName}}}",
|
||||
"semanticCommitType": "docs",
|
||||
"semanticCommitScope": null,
|
||||
"additionalBranchPrefix": "docs-"
|
||||
"description": "Automerge devDependencies updates",
|
||||
"depTypeList": ["devDependencies"],
|
||||
"updateTypes": ["pin", "digest", "patch", "minor"],
|
||||
"automerge": true
|
||||
},
|
||||
{
|
||||
"description": "Use build semantic type for some deps",
|
||||
"matchPackageNames": ["@vercel/ncc", "typescript"],
|
||||
"semanticCommitType": "build"
|
||||
},
|
||||
{
|
||||
"description": "Use `build` semantic commit scope for lockfile maintenance",
|
||||
"matchUpdateTypes": ["lockFileMaintenance"],
|
||||
"semanticCommitType": "build"
|
||||
},
|
||||
{
|
||||
"description": "Use ci semantic type for some deps",
|
||||
"matchFileNames": [".github/workflows/**"],
|
||||
"semanticCommitType": "ci"
|
||||
},
|
||||
{
|
||||
"description": "Don't require approval for renovate",
|
||||
"matchPackageNames": [
|
||||
"ghcr.io/renovatebot/renovate",
|
||||
"renovatebot/github-action"
|
||||
],
|
||||
"dependencyDashboardApproval": false
|
||||
},
|
||||
{
|
||||
"description": "Don't pin renovate updates",
|
||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
||||
"matchFileNames": [
|
||||
"action.yml",
|
||||
"src/docker.ts",
|
||||
".github/workflows/build.yml"
|
||||
],
|
||||
"pinDigests": false
|
||||
},
|
||||
{
|
||||
"description": "Use feat! semantic type for renovate major",
|
||||
"matchPackageNames": ["ghcr.io/renovatebot/renovate"],
|
||||
"matchFileNames": [
|
||||
"action.yml",
|
||||
"src/docker.ts",
|
||||
".github/workflows/build.yml"
|
||||
],
|
||||
"matchUpdateTypes": ["major"],
|
||||
"commitMessagePrefix": "feat(deps)!:",
|
||||
"additionalBranchPrefix": "renovate-major"
|
||||
"description": "Automerge renovate minor and patch updates",
|
||||
"packageNames": ["renovate/renovate"],
|
||||
"updateTypes": ["minor", "patch"],
|
||||
"semanticCommitType": "fix",
|
||||
"automerge": true
|
||||
}
|
||||
],
|
||||
"customManagers": [
|
||||
"regexManagers": [
|
||||
{
|
||||
"customType": "regex",
|
||||
"managerFilePatterns": ["README.md"],
|
||||
"fileMatch": ["^src/docker\\.ts$"],
|
||||
"matchStrings": [
|
||||
"uses: renovatebot/github-action@(?<currentValue>[^\\s]+)"
|
||||
"// renovate: datasource=(?<datasource>[a-z-]+?) depName=(?<depName>.+?)(?: versioning=(?<versioning>[a-z-]+?))?\\s+readonly\\s+tag\\s+=\\s+'(?<currentValue>.+?)';"
|
||||
],
|
||||
"depNameTemplate": "renovatebot/github-action",
|
||||
"datasourceTemplate": "github-releases"
|
||||
},
|
||||
{
|
||||
"customType": "regex",
|
||||
"managerFilePatterns": ["README.md"],
|
||||
"matchStrings": ["renovate-version: (?<currentValue>[^\\s]+)"],
|
||||
"depNameTemplate": "ghcr.io/renovatebot/renovate",
|
||||
"datasourceTemplate": "docker"
|
||||
},
|
||||
{
|
||||
"description": "Update renovate version in action.yml",
|
||||
"customType": "regex",
|
||||
"managerFilePatterns": ["action.yml"],
|
||||
"matchStrings": ["default: '(?<currentValue>[^\\s]+)' # renovate"],
|
||||
"depNameTemplate": "ghcr.io/renovatebot/renovate",
|
||||
"datasourceTemplate": "docker"
|
||||
},
|
||||
{
|
||||
"description": "Update renovate version in src/docker.ts",
|
||||
"customType": "regex",
|
||||
"managerFilePatterns": ["src/docker.ts"],
|
||||
"matchStrings": ["version = '(?<currentValue>[^\\s]+)'; // renovate"],
|
||||
"depNameTemplate": "ghcr.io/renovatebot/renovate",
|
||||
"datasourceTemplate": "docker"
|
||||
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
+44
-154
@@ -2,181 +2,71 @@ name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- 'renovate/**'
|
||||
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
env:
|
||||
RENOVATE_VERSION: 42.66.11 # renovate: datasource=docker depName=renovate packageName=ghcr.io/renovatebot/renovate
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
cleanup:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
timeout-minutes: 5
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
- name: github-cleanup
|
||||
uses: renovatebot/internal-tools@v0
|
||||
continue-on-error: true
|
||||
with:
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
with:
|
||||
save-cache: true
|
||||
command: github-cleanup
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
commitlint:
|
||||
needs: [cleanup]
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name != 'pull_request' || github.repository_owner != github.event.pull_request.head.repo.owner.login }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
uses: actions/checkout@v2.1.0
|
||||
with:
|
||||
fetch-depth: 0
|
||||
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
|
||||
continue-on-error: true
|
||||
|
||||
lint:
|
||||
needs:
|
||||
- prepare
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name != 'pull_request' || github.repository_owner != github.event.pull_request.head.repo.owner.login }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
|
||||
- name: Lint
|
||||
run: pnpm lint
|
||||
|
||||
e2e:
|
||||
needs:
|
||||
- prepare
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name != 'pull_request' || github.repository_owner != github.event.pull_request.head.repo.owner.login }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
configurationFile:
|
||||
- example/renovate-config.js
|
||||
- example/renovate-config.json
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
show-progress: false
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
- name: Configure renovate token
|
||||
run: |
|
||||
if [[ "${RENOVATE_TOKEN}" != "" ]]; then
|
||||
echo "RENOVATE_TOKEN=${RENOVATE_TOKEN}" >> $GITHUB_ENV
|
||||
else
|
||||
echo "RENOVATE_TOKEN=${GITHUB_TOKEN}" >> $GITHUB_ENV
|
||||
fi
|
||||
uses: wagoid/commitlint-github-action@v1.6.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
RENOVATE_TOKEN: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
||||
lint:
|
||||
needs: [cleanup]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.1.0
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v1.4.1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- name: Install project
|
||||
run: npm ci
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
|
||||
e2e:
|
||||
needs: [cleanup]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.1.0
|
||||
- name: Install project
|
||||
run: npm ci
|
||||
- name: Build
|
||||
run: npm run build
|
||||
- name: Renovate test
|
||||
uses: ./
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
configurationFile: ${{ matrix.configurationFile }}
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
|
||||
- name: Renovate test with entrypoint
|
||||
uses: ./
|
||||
env:
|
||||
LOG_LEVEL: debug
|
||||
with:
|
||||
configurationFile: ${{ matrix.configurationFile }}
|
||||
renovate-version: ${{ env.RENOVATE_VERSION }}
|
||||
docker-cmd-file: example/entrypoint.sh
|
||||
docker-user: root
|
||||
|
||||
renovate-config-validator:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
container:
|
||||
image: ghcr.io/renovatebot/renovate:42.66.11@sha256:e702d489f4d47302b8c487313296db859722feca134e17f674368f913c4e388d
|
||||
# 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
show-progress: false
|
||||
|
||||
- name: Validate Renovate configuration
|
||||
working-directory: example
|
||||
run: |
|
||||
renovate-config-validator renovate-config.js renovate-config.json
|
||||
|
||||
release:
|
||||
needs:
|
||||
- lint
|
||||
- commitlint
|
||||
- e2e
|
||||
- renovate-config-validator
|
||||
build:
|
||||
needs: [lint, commitlint, e2e]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup Git user
|
||||
shell: bash
|
||||
run: |
|
||||
git config --global core.autocrlf false
|
||||
git config --global core.symlinks true
|
||||
git config --global user.name "github-actions[bot]"
|
||||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
||||
with:
|
||||
fetch-depth: 0 # required for semantic release
|
||||
ref: 'release'
|
||||
show-progress: false
|
||||
filter: blob:none # we don't need all blobs, only the full tree
|
||||
|
||||
- name: fetch pr
|
||||
if: ${{github.event_name == 'pull_request'}}
|
||||
run: git fetch origin +${{ github.sha }}:${{ github.ref }}
|
||||
|
||||
- name: Merge main
|
||||
id: merge
|
||||
run: |
|
||||
git merge --no-ff -Xtheirs -m 'skip: merge (${{ github.sha }}) [skip release]' ${{ github.sha }}
|
||||
commit=$(git rev-parse HEAD)
|
||||
|
||||
- name: 📥 Setup Node.js
|
||||
uses: ./.github/actions/setup-node
|
||||
|
||||
- name: Push release branch
|
||||
run: git push origin release:release
|
||||
if: ${{ github.ref_name == github.event.repository.default_branch }}
|
||||
|
||||
- name: Release
|
||||
run: |
|
||||
# override for semantic-release
|
||||
export GITHUB_REF=refs/heads/release GITHUB_SHA=${{ steps.merge.outputs.commit }}
|
||||
pnpm release
|
||||
if: ${{ github.ref_name == github.event.repository.default_branch }}
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
- run: echo 'Dummy'
|
||||
@@ -0,0 +1,65 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
if: |
|
||||
startsWith(github.event.commits[0].message, 'fix(deps): update renovate/renovate docker tag ')
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2.1.0
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Fetch tags
|
||||
run: git fetch --tags
|
||||
- name: Setup Git user
|
||||
run: |
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v1.4.1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
- name: Install project
|
||||
run: npm ci
|
||||
- name: Release
|
||||
run: |
|
||||
SEMVER_REGEX="v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)"
|
||||
if [[ ! "${{ github.event.commits[0].message }}" =~ ${SEMVER_REGEX} ]]; then
|
||||
echo Not a semver like version - aborting: ${1}
|
||||
exit 1
|
||||
fi
|
||||
NEXT_VERSION="${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.${BASH_REMATCH[3]}"
|
||||
MAJOR_VERSION="${BASH_REMATCH[1]}"
|
||||
echo "::set-env name=NEXT_VERSION::${NEXT_VERSION}"
|
||||
echo "::set-env name=MAJOR_VERSION::${MAJOR_VERSION}"
|
||||
npm version ${NEXT_VERSION} -m "chore(release): ${NEXT_VERSION}"
|
||||
git tag "v${MAJOR_VERSION}"
|
||||
|
||||
- name: Publish release
|
||||
run: |
|
||||
git push origin "v${NEXT_VERSION}"
|
||||
git push -f origin "v${MAJOR_VERSION}"
|
||||
|
||||
# - name: Publish GitHub release
|
||||
# uses: actions/create-release@v1.0.1
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# with:
|
||||
# tag_name: v${{ env.NEXT_VERSION }}
|
||||
# release_name: v${{ env.NEXT_VERSION }}
|
||||
# body: |
|
||||
# See the the [changelog](
|
||||
# https://github.com/${{ github.repository }}/blob/master/CHANGELOG.md
|
||||
# ) for the changes included in this release.
|
||||
prevent_failed_status:
|
||||
name: Prevent failed status when skipped
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Prevent failed status when skipped
|
||||
run: |
|
||||
echo "Run this job to prevent the workflow status from showing as" \
|
||||
"failed when all other jobs are skipped."
|
||||
+1
-4
@@ -187,7 +187,7 @@ typings/
|
||||
# nuxt.js build output
|
||||
.nuxt
|
||||
|
||||
# react / gatsby
|
||||
# react / gatsby
|
||||
public/
|
||||
|
||||
# vuepress build output
|
||||
@@ -300,6 +300,3 @@ dkms.conf
|
||||
*.exe
|
||||
*.out
|
||||
*.app
|
||||
|
||||
|
||||
/.pnpm-store
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
commitlint --edit "$1"
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
lint-staged
|
||||
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
hooks: {
|
||||
'pre-commit': 'lint-staged',
|
||||
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
|
||||
},
|
||||
};
|
||||
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
'*.{ts,tsx,js,jsx,json}': ['npm run lint-es:file:fix'],
|
||||
'*.{vue,ts,css,less,scss,html,htm,md,markdown,yml,yaml}': [
|
||||
'npm run format:file',
|
||||
],
|
||||
};
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"*.{ts,tsx,js,jsx,json}": [
|
||||
"eslint --cache --fix",
|
||||
"prettier --cache --write"
|
||||
],
|
||||
"!*.{ts,tsx,js,jsx,json}": "prettier --cache --ignore-unknown --write"
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
24.12.0
|
||||
@@ -1,6 +1 @@
|
||||
save-exact=true
|
||||
save-prefix =
|
||||
|
||||
# pnpm run settings
|
||||
# https://pnpm.io/cli/run
|
||||
shell-emulator = true
|
||||
@@ -6,6 +6,3 @@ coverage/
|
||||
LICENSE.md
|
||||
modules/
|
||||
node_modules/
|
||||
|
||||
/.pnpm-store
|
||||
/pnpm-lock.yaml
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports = {
|
||||
singleQuote: true,
|
||||
};
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"trailingComma": "all",
|
||||
"plugins": ["prettier-plugin-packagejson"]
|
||||
}
|
||||
@@ -1,96 +0,0 @@
|
||||
{
|
||||
"branches": ["release"],
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/npm",
|
||||
[
|
||||
"@semantic-release/git",
|
||||
{
|
||||
"assets": ["dist", "package.json"],
|
||||
"message": "chore(release): ${nextRelease.version} [skip ci]"
|
||||
}
|
||||
],
|
||||
[
|
||||
"@semantic-release/github",
|
||||
{
|
||||
"releasedLabels": false,
|
||||
"successComment": false
|
||||
}
|
||||
]
|
||||
],
|
||||
"analyzeCommits": {
|
||||
"releaseRules": [
|
||||
{
|
||||
"type": "docs",
|
||||
"scope": "readme.md",
|
||||
"release": "patch"
|
||||
},
|
||||
{
|
||||
"type": "build",
|
||||
"release": "patch"
|
||||
},
|
||||
{
|
||||
"type": "skip",
|
||||
"release": false
|
||||
}
|
||||
]
|
||||
},
|
||||
"preset": "conventionalcommits",
|
||||
"presetConfig": {
|
||||
"types": [
|
||||
{
|
||||
"type": "feat",
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"type": "feature",
|
||||
"section": "Features"
|
||||
},
|
||||
{
|
||||
"type": "fix",
|
||||
"section": "Bug Fixes"
|
||||
},
|
||||
{
|
||||
"type": "perf",
|
||||
"section": "Performance Improvements"
|
||||
},
|
||||
{
|
||||
"type": "revert",
|
||||
"section": "Reverts"
|
||||
},
|
||||
{
|
||||
"type": "docs",
|
||||
"section": "Documentation"
|
||||
},
|
||||
{
|
||||
"type": "style",
|
||||
"section": "Styles"
|
||||
},
|
||||
{
|
||||
"type": "chore",
|
||||
"section": "Miscellaneous Chores"
|
||||
},
|
||||
{
|
||||
"type": "refactor",
|
||||
"section": "Code Refactoring"
|
||||
},
|
||||
{
|
||||
"type": "test",
|
||||
"section": "Tests"
|
||||
},
|
||||
{
|
||||
"type": "build",
|
||||
"section": "Build System"
|
||||
},
|
||||
{
|
||||
"type": "ci",
|
||||
"section": "Continuous Integration"
|
||||
},
|
||||
{
|
||||
"type": "skip",
|
||||
"hidden": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
module.exports = {
|
||||
scripts: {
|
||||
prerelease:
|
||||
'if [ "$(git branch --show-current)" != "master" ]; then exit 1; fi',
|
||||
},
|
||||
};
|
||||
+43
-1
@@ -1,3 +1,45 @@
|
||||
# Changelog
|
||||
|
||||
You can find the changelogs on the [GitHub releases page for `renovatebot/github-action`](https://github.com/renovatebot/github-action/releases/).
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
### [1.0.5](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.4...v1.0.5) (2020-03-30)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update renovate/renovate docker tag to v19.189.0 ([#11](https://github.com/vidavidorra/github-action-renovate/issues/11)) ([df74dfa](https://github.com/vidavidorra/github-action-renovate/commit/df74dfa0053acfbf2db3f782f5c042065b9807f5))
|
||||
|
||||
### [1.0.4](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.3...v1.0.4) (2020-03-28)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update renovate/renovate docker tag to v19.184.2 ([#10](https://github.com/vidavidorra/github-action-renovate/issues/10)) ([32ae3cb](https://github.com/vidavidorra/github-action-renovate/commit/32ae3cb974963fdc7987adee6de3ad402ca2361b))
|
||||
|
||||
### [1.0.3](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.2...v1.0.3) (2020-03-27)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update renovate/renovate docker tag to v19.181.0 ([#8](https://github.com/vidavidorra/github-action-renovate/issues/8)) ([9b29fd3](https://github.com/vidavidorra/github-action-renovate/commit/9b29fd34fe1d09431e3b7967c5c4c71f4b8e67d6))
|
||||
- **deps:** update renovate/renovate docker tag to v19.184.0 ([#9](https://github.com/vidavidorra/github-action-renovate/issues/9)) ([de6975e](https://github.com/vidavidorra/github-action-renovate/commit/de6975e31a6c1c301f86ea5d04dd3e8579e5d815))
|
||||
|
||||
### [1.0.2](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.1...v1.0.2) (2020-03-22)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- **deps:** update renovate/renovate docker tag to v19.176.3 ([9957aeb](https://github.com/vidavidorra/github-action-renovate/commit/9957aeba72b45e1fcc9a87b8532a52ad2464a526))
|
||||
|
||||
### [1.0.1](https://github.com/vidavidorra/github-action-renovate/compare/v1.0.0...v1.0.1) (2020-03-20)
|
||||
|
||||
## 1.0.0 (2020-03-20)
|
||||
|
||||
### Features
|
||||
|
||||
- add self-hosted renovate sources ([5f5662b](https://github.com/vidavidorra/github-action-renovate/commit/5f5662bb8600d82e9e23ac911d56ec943ab3c0ff))
|
||||
- add token input and account for Renovate WORKDIR ([cd4dee3](https://github.com/vidavidorra/github-action-renovate/commit/cd4dee329720030349b278460f2f6ff8ddaca4c4))
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
- add chmod+x for entrypoint ([f0979c4](https://github.com/vidavidorra/github-action-renovate/commit/f0979c49826eb1885a487e12c30cea1650e7266b))
|
||||
- correct COPY in dockerfile for relative path ([341841e](https://github.com/vidavidorra/github-action-renovate/commit/341841ebc60c5c2a221ed49db2f91326bcd0cdd8))
|
||||
- prefix configuration file with GitHub workspace dir ([26124b0](https://github.com/vidavidorra/github-action-renovate/commit/26124b07e464ef56a31f3e77425052bb67ac8a20))
|
||||
- the Dockerfile MUST have a lowercase F for GitHub Action to work ([3e4d5f0](https://github.com/vidavidorra/github-action-renovate/commit/3e4d5f0dd6da60c4277b72bb0a26dd4dd2707dd7))
|
||||
- typo in action 9DockerFile) ([5525465](https://github.com/vidavidorra/github-action-renovate/commit/5525465215bf73411f8a5b436105a1fc8175e031))
|
||||
@@ -2,274 +2,65 @@
|
||||
|
||||
GitHub Action to run Renovate self-hosted.
|
||||
|
||||
<!-- markdownlint-disable no-inline-html -->
|
||||
|
||||
<a name="toc"></a>
|
||||
|
||||
## Table of contents
|
||||
|
||||
- [Badges](#badges)
|
||||
- [Options](#options)
|
||||
- [`configurationFile`](#configurationfile)
|
||||
- [`docker-cmd-file`](#docker-cmd-file)
|
||||
- [`docker-network`](#docker-network)
|
||||
- [`docker-socket-host-path`](#docker-socket-host-path)
|
||||
- [`docker-user`](#docker-user)
|
||||
- [`docker-volumes`](#docker-volumes)
|
||||
- [`env-regex`](#env-regex)
|
||||
- [`mount-docker-socket`](#mount-docker-socket)
|
||||
- [`token`](#token)
|
||||
- [`renovate-image`](#renovate-image)
|
||||
- [`renovate-version`](#renovate-version)
|
||||
- [`configurationFile`](#option-configurationFile)
|
||||
- [`token`](#option-token)
|
||||
- [Example](#example)
|
||||
- [Environment Variables](#environment-variables)
|
||||
- [Passing other environment variables](#passing-other-environment-variables)
|
||||
- [Persisting the Repository Cache](#persisting-the-repository-cache)
|
||||
- [Troubleshooting](#troubleshooting)
|
||||
- [Debug Logging](#debug-logging)
|
||||
- [Special token requirements when using the `github-actions` manager](#special-token-requirements-when-using-the-github-actions-manager)
|
||||
- [License](#license)
|
||||
|
||||
<a name="badges"></a>
|
||||
|
||||
## Badges
|
||||
|
||||
| Badge | Description | Service |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | -------------------- |
|
||||
| <a href="https://github.com/prettier/prettier#readme"><img alt="code style" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a> | Code style | Prettier |
|
||||
| <a href="https://conventionalcommits.org"><img alt="Conventional Commits: 1.0.0" src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square"></a> | Commit style | Conventional Commits |
|
||||
| <a href="https://renovatebot.com"><img alt="Renovate enabled" src="https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square"></a> | Dependencies | Renovate |
|
||||
| <a href="https://github.com/renovatebot/github-action/actions"><img alt="GitHub workflow status" src="https://img.shields.io/github/actions/workflow/status/renovatebot/github-action/build.yml?style=flat-square"></a> | Build | GitHub Actions |
|
||||
| Badge | Description | Service |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ | -------------------- |
|
||||
| <a href="https://github.com/prettier/prettier#readme"><img alt="code style" src="https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square"></a> | Code style | Prettier |
|
||||
| <a href="https://conventionalcommits.org"><img alt="Conventional Commits: 1.0.0" src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square"></a> | Commit style | Conventional Commits |
|
||||
| <a href="https://renovatebot.com"><img alt="Renovate enabled" src="https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square"></a> | Dependencies | Renovate |
|
||||
| <a href="https://github.com/renovatebot/github-action/actions"><img alt="GitHub workflow status" src="https://img.shields.io/github/workflow/status/renovatebot/github-action/Build?style=flat-square"></a> | Build | GitHub Actions |
|
||||
| <a href="https://github.com/renovatebot/github-action/actions"><img alt="GitHub workflow status" src="https://img.shields.io/github/workflow/status/renovatebot/github-action/Example?style=flat-square"></a> | Example | GitHub Actions |
|
||||
|
||||
<a name="options"></a>
|
||||
|
||||
## Options
|
||||
|
||||
Options can be passed using the inputs of this action or the corresponding environment variables.
|
||||
When both are passed, the input takes precedence over the environment variable.
|
||||
For the available environment variables, see the Renovate [Self-Hosted Configuration](https://docs.renovatebot.com/self-hosted-configuration/) docs.
|
||||
<a name="option-configurationFile"></a>
|
||||
|
||||
### `configurationFile`
|
||||
## `configurationFile`
|
||||
|
||||
Configuration file to configure Renovate ("global" config) in JavaScript or JSON format.
|
||||
It is recommended to not name it one of the repository configuration filenames listed in the Renovate Docs for [Configuration Options](https://docs.renovatebot.com/configuration-options/).
|
||||
|
||||
Config examples can be found in the [example](./example) directory.
|
||||
|
||||
The configurations that can be done in this file consists of two parts, as listed below.
|
||||
Refer to the links to the [Renovate Docs](https://docs.renovatebot.com/) for all options.
|
||||
Configuration file to configure Renovate. The configurations that can be done in this file consists of two parts, as listed below. Refer to the links to the [Renovate Docs](https://docs.renovatebot.com/) for all options and see the [`example/config.js`](./example/config.js) for an example configuration.
|
||||
|
||||
1. [Self-Hosted Configuration Options](https://docs.renovatebot.com/self-hosted-configuration/)
|
||||
2. [Configuration Options](https://docs.renovatebot.com/configuration-options/)
|
||||
|
||||
The [`branchPrefix`](https://docs.renovatebot.com/configuration-options/#branchprefix) option is important to configure and should be configured to a value other than the default to prevent interference with e.g. the Renovate GitHub App.
|
||||
|
||||
If you want to use this with just the single configuration file, make sure to include the following two configuration lines.
|
||||
This disables the requirement of a configuration file for the repository and disables onboarding.
|
||||
If you want to use this with just the single configuration file, make sure to include the following two configuration lines. This disables the requirement of a configuration file for the repository and disables onboarding.
|
||||
|
||||
```js
|
||||
onboarding: false,
|
||||
requireConfig: 'optional',
|
||||
requireConfig: false,
|
||||
```
|
||||
|
||||
### `docker-cmd-file`
|
||||
<a name="option-token"></a>
|
||||
|
||||
Specify a command to run when the image start.
|
||||
By default the image run
|
||||
`renovate`.
|
||||
This option is useful to customize the image before running `renovate`.
|
||||
It must be an existing executable file on the local system.
|
||||
It will be mounted to the docker container.
|
||||
## `token`
|
||||
|
||||
For example you can create a simple script like this one (let's call it
|
||||
`renovate-entrypoint.sh`).
|
||||
[Generate a personal access token](https://github.com/settings/tokens), with the `repo:public_repo` scope for only public repositories or the `repo` scope for public and private repositories, and add it to _Secrets_ (repository settings) as `RENOVATE_TOKEN`. You can also create a token without a specific scope, which gives read-only access to public repositories, for testing. This token is only used by Renovate, see the [token configuration](https://docs.renovatebot.com/self-hosted-configuration/#token), and gives it access to the repositories. The name of the secret can be anything as long as it matches the argument given to the `token` option.
|
||||
|
||||
```sh
|
||||
#!/bin/bash
|
||||
Note that the [`GITHUB_TOKEN`](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token) secret can't be used for authenticating Renovate.
|
||||
|
||||
apt update
|
||||
|
||||
apt install -y build-essential libpq-dev
|
||||
|
||||
runuser -u ubuntu renovate
|
||||
```
|
||||
|
||||
Now use this action
|
||||
|
||||
```yml
|
||||
....
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
docker-cmd-file: .github/renovate-entrypoint.sh
|
||||
docker-user: root
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
### `docker-network`
|
||||
|
||||
Specify a network to run container in.
|
||||
|
||||
You can use `${{ job.container.network }}` to run renovate container [in the same network as other containers for this job](https://docs.github.com/en/actions/learn-github-actions/contexts#job-context),
|
||||
or set it to `host` to run in the same network as github runner, or specify any custom network.
|
||||
|
||||
### `docker-socket-host-path`
|
||||
|
||||
Allows the overriding of the host path for the Docker socket that is mounted into the container.
|
||||
Useful on systems where the host Docker socket is located somewhere other than `/var/run/docker.sock` (the default).
|
||||
Only applicable when `mount-docker-socket` is true.
|
||||
|
||||
### `docker-user`
|
||||
|
||||
Specify a user (or user-id) to run docker command.
|
||||
|
||||
You can use it with [`docker-cmd-file`](#docker-cmd-file) in order to start the
|
||||
image as root, do some customization and switch back to a unprivileged user.
|
||||
|
||||
### `docker-volumes`
|
||||
|
||||
Specify volume mounts. Defaults to `/tmp:/tmp`.
|
||||
The volume mounts are separated through `;`.
|
||||
|
||||
This sample will mount `/tmp:/tmp` and `/foo:/bar`.
|
||||
|
||||
```yml
|
||||
....
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
docker-volumes: |
|
||||
/tmp:/tmp ;
|
||||
/foo:/bar
|
||||
```
|
||||
|
||||
### `env-regex`
|
||||
|
||||
Allows to configure the regex to define which environment variables are passed to the renovate container.
|
||||
See [Passing other environment variables](#passing-other-environment-variables) section for more details.
|
||||
|
||||
## `mount-docker-socket`
|
||||
|
||||
Default to `false`. If set to `true` the action will mount the Docker socket
|
||||
inside the renovate container so that the commands can use Docker. Can be useful
|
||||
for `postUpgradeTasks`'s commands. Also add the user inside the renovate
|
||||
container to the docker group for socket permissions.
|
||||
|
||||
### `token`
|
||||
|
||||
[Generate a Personal Access Token (classic)](https://github.com/settings/tokens), with the `repo:public_repo` scope for only public repositories or the `repo` scope for public and private repositories, and add it to _Secrets_ (repository settings) as `RENOVATE_TOKEN`.
|
||||
You can also create a token without a specific scope, which gives read-only access to public repositories, for testing.
|
||||
This token is only used by Renovate, see the [token configuration](https://docs.renovatebot.com/self-hosted-configuration/#token), and gives it access to the repositories.
|
||||
The name of the secret can be anything as long as it matches the argument given to the `token` option.
|
||||
|
||||
Note that Renovate _cannot_ currently use [Fine-grained Personal Access Tokens](https://github.com/settings/tokens?type=beta) since they do not support the GitHub GraphQL API, yet.
|
||||
|
||||
Note that the [`GITHUB_TOKEN`](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token) secret can't be used for authenticating Renovate because it has too restrictive permissions.
|
||||
In particular, using the `GITHUB_TOKEN` to create a new `Pull Request` from more types of Github Workflows results in `Pull Requests` that [do not trigger your `Pull Request` and `Push` CI events](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow).
|
||||
|
||||
If you want to use the `github-actions` manager, you must setup a [special token](#special-token-requirements-when-using-the-github-actions-manager) with some requirements.
|
||||
|
||||
### `renovate-image`
|
||||
|
||||
The Renovate Docker image name to use.
|
||||
If omitted the action will use the `ghcr.io/renovatebot/renovate:<renovate-version>` Docker image name otherwise.
|
||||
If a Docker image name is defined, the action will use that name to pull the image.
|
||||
|
||||
This sample will use `myproxyhub.domain.com/renovate/renovate:<renovate-version>` image.
|
||||
|
||||
```yml
|
||||
....
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
renovate-image: myproxyhub.domain.com/renovate/renovate
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
This sample will use `ghcr.io/renovatebot/renovate:<renovate-version>` image.
|
||||
|
||||
```yml
|
||||
....
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
### `renovate-version`
|
||||
|
||||
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:42.66.11` image.
|
||||
|
||||
```yml
|
||||
....
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
renovate-version: 42.66.11
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
This sample will use `ghcr.io/renovatebot/renovate:full` image.
|
||||
|
||||
```yml
|
||||
....
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
renovate-version: full
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
We recommend you pin the version of Renovate to a full version or a full checksum, and use Renovate's regex manager to create PRs to update the pinned version.
|
||||
See `.github/workflows/build.yml` for an example of how to do this.
|
||||
<a name="example"></a>
|
||||
|
||||
## Example
|
||||
|
||||
This example uses a Personal Access Token and will run every 15 minutes.
|
||||
The Personal Access token is configured as a GitHub secret named `RENOVATE_TOKEN`.
|
||||
This example uses the [`example/renovate-config.js`](./example/renovate-config.js) file as configuration.
|
||||
Live examples with more advanced configurations of this action can be found in the following repositories:
|
||||
|
||||
- [vidavidorra/renovate](https://github.com/vidavidorra/renovate/blob/main/.github/renovate.json)
|
||||
- [jenkinsci/helm-charts](https://github.com/jenkinsci/helm-charts/blob/main/.github/renovate-config.json5)
|
||||
|
||||
**Remark** Update the action version to the most current, see [here](https://github.com/renovatebot/github-action/releases/latest) for latest release.
|
||||
This example uses a personal access token and will run every 15 minutes. The personal access token is configured as a GitHub secret named `RENOVATE_TOKEN`. This example uses the [`example/config.js`](./example/config.js) file as configuration.
|
||||
You can also see a live example of this action in my [github-renovate](https://github.com/vidavidorra/github-renovate) repository, which also includes a more [advanced configuration](https://github.com/vidavidorra/github-renovate/blob/master/src/config.js) for updating GitHub Action workflows.
|
||||
|
||||
```yml
|
||||
name: Renovate
|
||||
@@ -283,282 +74,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
uses: actions/checkout@v2.0.0
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
uses: renovatebot/github-action@v1.0.0
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
configurationFile: example/config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
```
|
||||
|
||||
### Example for GitHub Enterprise
|
||||
|
||||
If you want to use the Renovate Action on a GitHub Enterprise instance you have to add the following environment variable:
|
||||
|
||||
```yml
|
||||
....
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
env:
|
||||
RENOVATE_ENDPOINT: "https://git.your-company.com/api/v3"
|
||||
```
|
||||
|
||||
### Example with GitHub App
|
||||
|
||||
Instead of using a Personal Access Token (PAT) that is tied to a particular user you can use a [GitHub App](https://docs.github.com/en/developers/apps/building-github-apps) where permissions can be even better tuned.
|
||||
[Create a new app](https://docs.github.com/en/developers/apps/creating-a-github-app) and configure the app permissions and your `config.js` as described in the [Renovate documentation](https://docs.renovatebot.com/modules/platform/github/#running-as-a-github-app).
|
||||
|
||||
Generate and download a new private key for the app, adding the contents of the downloaded `.pem` file to _Secrets_ (repository settings) with the name `private_key` and app ID as a secret with name `app_id`.
|
||||
|
||||
Adjust your Renovate configuration file to specify the username of your bot.
|
||||
|
||||
From the Github app configuration page, install the app in your account or your organization's account, and configure the repository access.
|
||||
|
||||
Going forward we will be using the [`actions/create-github-app-token` action](https://github.com/actions/create-github-app-token) in order to exchange the GitHub App certificate for an access token that Renovate can use.
|
||||
|
||||
The final workflow will look like this:
|
||||
|
||||
```yaml
|
||||
name: Renovate
|
||||
on:
|
||||
schedule:
|
||||
# The "*" (#42, asterisk) character has special semantics in YAML, so this
|
||||
# string has to be quoted.
|
||||
- cron: '0/15 * * * *'
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get token
|
||||
id: get_token
|
||||
uses: actions/create-github-app-token@v1
|
||||
with:
|
||||
private-key: ${{ secrets.private_key }}
|
||||
app-id: ${{ secrets.app_id }}
|
||||
owner: ${{ github.repository_owner }}
|
||||
repositories: 'repo1,repo2'
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
```
|
||||
|
||||
### Commit signing with GitHub App
|
||||
|
||||
Renovate can sign commits when deployed as a GitHub App by utilizing GitHub's API-based commits.
|
||||
To activate this, ensure that `platformCommit` is set to `true` in global config.
|
||||
If a configuration file is defined, include `platformCommit: true` to activate this feature.
|
||||
For example:
|
||||
|
||||
```yaml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
token: '${{ steps.get_token.outputs.token }}'
|
||||
env:
|
||||
RENOVATE_PLATFORM_COMMIT: 'true'
|
||||
```
|
||||
|
||||
## Environment Variables
|
||||
|
||||
If you wish to pass through environment variables through to the Docker container that powers this action you need to prefix the environment variable with `RENOVATE_`.
|
||||
|
||||
For example if you wish to pass through some credentials for a [host rule](https://docs.renovatebot.com/configuration-options/#hostrules) to the `config.js` then you should do so like this.
|
||||
|
||||
1. In your workflow pass in the environment variable
|
||||
|
||||
```yml
|
||||
....
|
||||
jobs:
|
||||
renovate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
env:
|
||||
RENOVATE_TFE_TOKEN: ${{ secrets.MY_TFE_TOKEN }}
|
||||
```
|
||||
|
||||
1. In `example/renovate-config.js` include the hostRules block
|
||||
|
||||
```js
|
||||
module.exports = {
|
||||
hostRules: [
|
||||
{
|
||||
hostType: 'terraform-module',
|
||||
matchHost: 'app.terraform.io',
|
||||
token: process.env.RENOVATE_TFE_TOKEN,
|
||||
},
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
### 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@v6.0.1
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
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 }}
|
||||
```
|
||||
|
||||
## Persisting the repository cache
|
||||
|
||||
In some cases, Renovate can update PRs more frequently than you expect. The [repository cache](https://docs.renovatebot.com/self-hosted-configuration/#repositorycache) can help with this issue. You need a few things to persist this cache in GitHub actions:
|
||||
|
||||
1. Enable the `repositoryCache` [option](https://docs.renovatebot.com/self-hosted-configuration/#repositorycache) via env vars or renovate.json.
|
||||
2. Persist `/tmp/renovate/cache/renovate/repository` as an artifact.
|
||||
3. Restore the artifact before renovate runs.
|
||||
|
||||
Below is a workflow example with caching.
|
||||
|
||||
Note that while archiving and compressing the cache is more performant, especially if you need to handle lots of files within the cache, it's not strictly necessary. You could simplify this workflow and only upload and download a single artifact file (or directory) with a direct path (e.g. `/tmp/renovate/cache/renovate/repository/github/$org/$repo.json`). However, you'll still need to set the correct permissions with `chown` as shown in the example.
|
||||
|
||||
```yml
|
||||
name: Renovate
|
||||
on:
|
||||
# This lets you dispatch a renovate job with different cache options if you want to reset or disable the cache manually.
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
repoCache:
|
||||
description: 'Reset or disable the cache?'
|
||||
type: choice
|
||||
default: enabled
|
||||
options:
|
||||
- enabled
|
||||
- disabled
|
||||
- reset
|
||||
schedule:
|
||||
# Run every 30 minutes:
|
||||
- cron: '0,30 * * * *'
|
||||
|
||||
# Adding these as env variables makes it easy to re-use them in different steps and in bash.
|
||||
env:
|
||||
cache_archive: renovate_cache.tar.gz
|
||||
# This is the dir renovate provides -- if we set our own directory via cacheDir, we can run into permissions issues.
|
||||
# It is also possible to cache a higher level of the directory, but it has minimal benefit. While renovate execution
|
||||
# time gets faster, it also takes longer to upload the cache as it grows bigger.
|
||||
cache_dir: /tmp/renovate/cache/renovate/repository
|
||||
# This can be manually changed to bust the cache if neccessary.
|
||||
cache_key: renovate-cache
|
||||
|
||||
jobs:
|
||||
renovate:
|
||||
name: Renovate
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
# This third party action allows you to download the cache artifact from different workflow runs
|
||||
# Note that actions/cache doesn't work well because the cache key would need to be computed from
|
||||
# a file within the cache, meaning there would never be any data to restore. With other keys, the
|
||||
# cache wouldn't necessarily upload when it changes. actions/download-artifact also doesn't work
|
||||
# because it only handles artifacts uploaded in the same run, and we want to restore from the
|
||||
# previous successful run.
|
||||
- uses: dawidd6/action-download-artifact@v2
|
||||
if: github.event.inputs.repoCache != 'disabled'
|
||||
continue-on-error: true
|
||||
with:
|
||||
name: ${{ env.cache_key }}
|
||||
path: cache-download
|
||||
|
||||
# Using tar to compress and extract the archive isn't strictly necessary, but it can improve
|
||||
# performance significantly when uploading artifacts with lots of files.
|
||||
- name: Extract renovate cache
|
||||
run: |
|
||||
set -x
|
||||
# Skip if no cache is set, such as the first time it runs.
|
||||
if [ ! -d cache-download ] ; then
|
||||
echo "No cache found."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Make sure the directory exists, and extract it there. Note that it's nested in the download directory.
|
||||
mkdir -p $cache_dir
|
||||
tar -xzf cache-download/$cache_archive -C $cache_dir
|
||||
|
||||
# Unfortunately, the permissions expected within renovate's docker container
|
||||
# are different than the ones given after the cache is restored. We have to
|
||||
# change ownership to solve this. We also need to have correct permissions in
|
||||
# the entire /tmp/renovate tree, not just the section with the repo cache.
|
||||
sudo chown -R 12021:0 /tmp/renovate/
|
||||
ls -R $cache_dir
|
||||
|
||||
- uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
configurationFile: renovate.json5
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
renovate-version: 42.66.11
|
||||
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' }}
|
||||
|
||||
# Compression helps performance in the upload step!
|
||||
- name: Compress renovate cache
|
||||
run: |
|
||||
ls $cache_dir
|
||||
# The -C is important -- otherwise we end up extracting the files with
|
||||
# their full path, ultimately leading to a nested directory situation.
|
||||
# To solve *that*, we'd have to extract to root (/), which isn't safe.
|
||||
tar -czvf $cache_archive -C $cache_dir .
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: github.event.inputs.repoCache != 'disabled'
|
||||
with:
|
||||
name: ${{ env.cache_key }}
|
||||
path: ${{ env.cache_archive }}
|
||||
# Since this is updated and restored on every run, we don't need to keep it
|
||||
# for long. Just make sure this value is large enough that multiple renovate
|
||||
# runs can happen before older cache archives are deleted.
|
||||
retention-days: 1
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Debug logging
|
||||
|
||||
In case of issues, it's always a good idea to enable debug logging first.
|
||||
To enable debug logging, add the environment variable `LOG_LEVEL: 'debug'` to the action:
|
||||
|
||||
```yml
|
||||
- name: Self-hosted Renovate
|
||||
uses: renovatebot/github-action@v44.2.1
|
||||
with:
|
||||
configurationFile: example/renovate-config.js
|
||||
token: ${{ secrets.RENOVATE_TOKEN }}
|
||||
env:
|
||||
LOG_LEVEL: 'debug'
|
||||
```
|
||||
|
||||
### Special token requirements when using the `github-actions` manager
|
||||
|
||||
If you want to use the `github-actions` [manager](https://docs.renovatebot.com/modules/manager/github-actions/) in Renovate, ensure that the `token` you provide contains the `workflow` scope.
|
||||
Otherwise, GitHub does not allow Renovate to update workflow files and therefore it will be unable to create update PRs for affected packages (like `actions/checkout` or `renovatebot/github-action` itself).
|
||||
+6
-54
@@ -1,4 +1,4 @@
|
||||
name: 'Renovate Bot GitHub Action'
|
||||
name: 'Self-Hosted Renovate'
|
||||
description: 'GitHub Action to run self-hosted Renovate.'
|
||||
author: 'Jeroen de Bruijn'
|
||||
branding:
|
||||
@@ -6,62 +6,14 @@ branding:
|
||||
color: blue
|
||||
inputs:
|
||||
configurationFile:
|
||||
description: |
|
||||
Configuration file to configure Renovate. Either use this input or the
|
||||
'RENOVATE_CONFIG_FILE' environment variable.
|
||||
description: 'Configuration file to configure Renovate'
|
||||
required: false
|
||||
default: src/config.js
|
||||
token:
|
||||
description: |
|
||||
GitHub personal access token that Renovate should use. This should be
|
||||
configured using a Secret. Either use this input or the 'RENOVATE_TOKEN'
|
||||
environment variable.
|
||||
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|(?:HTTPS?|NO)_PROXY|(?:https?|no)_proxy)$`
|
||||
required: false
|
||||
renovate-version:
|
||||
description: |
|
||||
Renovate version to use.
|
||||
required: false
|
||||
default: '42' # renovate
|
||||
renovate-image:
|
||||
description: |
|
||||
Renovate docker image name.
|
||||
required: false
|
||||
default: ghcr.io/renovatebot/renovate
|
||||
mount-docker-socket:
|
||||
description: |
|
||||
Mount the Docker socket inside the renovate container so that the commands
|
||||
can use Docker. Also add the user inside the renovate container to the
|
||||
docker group for socket permissions.
|
||||
required: false
|
||||
docker-socket-host-path:
|
||||
description: |
|
||||
Allows the overriding of the host path for the Docker socket that is mounted into the container.
|
||||
Useful on systems where the host Docker socket is located somewhere other than '/var/run/docker.sock' (the default).
|
||||
Only applicable when 'mount-docker-socket' is true.
|
||||
required: false
|
||||
default: /var/run/docker.sock
|
||||
docker-cmd-file:
|
||||
description: |
|
||||
Override docker command. Default command is `renovate`
|
||||
required: false
|
||||
docker-network:
|
||||
description: |
|
||||
Docker network.
|
||||
required: false
|
||||
docker-user:
|
||||
description: |
|
||||
Docker user. Default to an unprivileged user
|
||||
required: false
|
||||
docker-volumes:
|
||||
description: |
|
||||
Docker volume mounts. Default to /tmp:/tmp
|
||||
default: /tmp:/tmp
|
||||
required: false
|
||||
|
||||
configured using a Secret.
|
||||
required: true
|
||||
runs:
|
||||
using: node20
|
||||
using: node12
|
||||
main: dist/index.js
|
||||
@@ -1,3 +1,3 @@
|
||||
export default {
|
||||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional'],
|
||||
};
|
||||
Vendored
+1723
-67
File diff suppressed because it is too large.
Load diff
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../tools/cjs-shim.ts", "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/src/utils.ts", "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/src/command.ts", "../node_modules/.pnpm/@actions+core@1.11.1/node_modules/@actions/core/src/file-command.ts", "../node_modules/.pnpm/@actions+http-client@2.2.3/node_modules/@actions/http-client/src/proxy.ts", "../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/lib/tunnel.js", "../node_modules/.pnpm/tunnel@0.0.6/node_modules/tunnel/index.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/symbols.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/errors.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/constants.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/util.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/timers.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/streamsearch/sbmh.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/PartStream.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/getLimit.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/HeaderParser.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/decodeText.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/parseParams.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/basename.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/multipart.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/utils/Decoder.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/types/urlencoded.js", "../node_modules/.pnpm/@fastify+busboy@2.1.1/node_modules/@fastify/busboy/lib/main.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/constants.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/global.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/util.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/symbols.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/webidl.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/dataURL.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/file.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/formdata.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/fetch/body.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/request.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/dispatcher-base.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/core/connect.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/src/llhttp/utils.ts", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/src/llhttp/constants.ts", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/handler/RedirectHandler.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/interceptor/redirectInterceptor.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/client.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/node/fixed-queue.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-stats.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool-base.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/pool.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/balanced-pool.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/compat/dispatcher-weakref.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/agent.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/readable.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/util.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/abort-signal.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-request.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-stream.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-pipeline.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-upgrade.js", "../node_modules/.pnpm/undici@5.29.0/node_modules/undici/lib/api/api-connect.js", "../node_modules/.pnpm/undici@5.29.0/node_modulesLine truncated
|
||||
"sourcesContent": ["// https://github.com/evanw/esbuild/issues/1921#issuecomment-1898197331\nimport { createRequire } from 'node:module';\nimport path from 'node:path';\nimport url from 'node:url';\n\nglobalThis.require = createRequire(import.meta.url);\nglobalThis.__filename = url.fileURLToPath(import.meta.url);\nglobalThis.__dirname = path.dirname(__filename);\n", null, null, null, null, "'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = newLine truncated
|
||||
"mappings": "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 truncated
|
||||
"names": ["createRequire", "path", "url", "init_cjs_shim", "__esmMin", "toCommandValue", "input", "exports", "toCommandProperties", "annotationProperties", "os", "__importStar", "utils_1", "issueCommand", "command", "properties", "message", "cmd", "Command", "exports", "issue", "name", "CMD_STRING", "cmdStr", "first", "key", "val", "escapeProperty", "escapeData", "s", "crypto", "__importStar", "fs", "os", "utils_1", "issueFileCommand", "command", "message", "filePath", "exports", "prepareKeyValueMessage", "key", "value", "delimiter", "convertedValue", "getProxyUrl", "reqUrl", "usingSsl", "checkBypass", "proxyVar", "DecodedURL", "exports", "reqHost", "isLoopbackAddress", "noProxy", "reqPort", "upperReqHosts", "upperNoProxyItem", "x", "host", "hostLower", "url", "base", "require_tunnel", "__commonJSMin", "exports", "init_cjs_shim", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "init_cjs_shim", "require_symbols", "__commonJSMin", "exports", "module", "init_cjs_shim", "require_errors", "__commonJSMin", "exports", "module", "init_cjs_shim", "UndiciError", "message", "ConnectTimeoutError", "_ConnectTimeoutError", "HeadersTimeoutError", "_HeadersTimeoutError", "HeadersOverflowError", "_HeadersOverflowError", "BodyTimeoutError", "_BodyTimeoutError", "ResponseStatusCodeError", "_ResponseStatusCodeError", "statusCode", "headers", "body", "InvalidArgumentError", "_InvalidArgumentError", "InvalidReturnValueError", "_InvalidReturnValueError", "RequestAbortedError", "_RequestAbortedError", "InformationalError", "_InformationalError", "RequestContentLengthMismatchError", "_RequestContentLengthMismatchError", "ResponseContentLengthMismatchError", "_ResponseContentLengthMismatchError", "ClientDestroyedError", "_ClientDestroyedError", "ClientClosedError", "_ClientClosedError", "SocketError", "_SocketError", "socket", "NotSupportedError", "_NotSupportedError", "BalancedPoolMissingUpstreamError", "HTTPParserError", "_HTTPParserError", "code", "data", "ResponseExceededMaxSizeError", "_ResponseExceededMaxSizeError", "RequestRetryError", "_RequestRetryError", "require_constants", "__commonJSMin", "exports", "module", "init_cjs_shim", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_util", "__commonJSMin", "exports", "module", "init_cjs_shim", "assert", "kDestroyed", "kBodyUsed", "IncomingMessage", "stream", "net", "InvalidArgumentError", "Blob", "nodeUtil", "stringify", "headerNameLowerCasedRecord", "nodeMajor", "nodeMinor", "v", "nop", "isStream", "obj", "isBlobLike", "object", "buildURL", "url", "queryParams", "stringified", "parseURL", "port", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "isIterable", "bodyLength", "body", "state", "isBuffer", "isDestroyed", "isReadableAborted", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "value", "parseHeaders", "headers", "i", "key", "x", "parseRawHeaders", "ret", "hasContentLength", "contentDispositionIdx", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "convertIterableToBuffer", "iterable", "chunk", "ReadableStream", "ReadableStreamFrom", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "throwIfAborted", "signal", "addAbortListener", "listener", "hasToWellFormed", "toUSVString", "parseRangeHeader", "range", "kEnumerableProperty", "require_timers", "__commonJSMin", "exports", "module", "init_cjs_shim", "fastNow", "fastNowTimeout", "fastTimers", "onTimeout", "len", "idx", "timer", "refreshTimeout", "Timeout", "callback", "delay", "opaque", "timeout", "require_sbmh", "__commonJSMin", "exports", "module", "init_cjs_shim", "EventEmitter", "inherits", "SBMH", "needle", "needleLength", "i", "chunk", "pos", "chlen", "data", "len", "lastNeedleChar", "ch", "bytesToCutOff", "require_PartStream", "__commonJSMin", "exports", "module", "init_cjs_shim", "inherits", "ReadableStream", "PartStream", "opts", "n", "require_getLimit", "__commonJSMin", "exports", "module", "init_cjs_shim", "limits", "name", "defaultLimit", "require_HeaderParser", "__commonJSMin", "exports", "module", "init_cjs_shim", "EventEmitter", "inherits", "getLimit", "StreamSearch", "B_DCRLF", "RE_CRLF", "RE_HDR", "HeaderParser", "cfg", "self", "isMatch", "data", Line truncated
|
||||
}
|
||||
@@ -1,64 +0,0 @@
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||
import eslintConfigPrettier from 'eslint-config-prettier';
|
||||
import globals from 'globals';
|
||||
import js from '@eslint/js';
|
||||
import json from 'eslint-plugin-json';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default tseslint.config(
|
||||
{
|
||||
ignores: [
|
||||
'**/.git/',
|
||||
'**/.vscode',
|
||||
'**/build/',
|
||||
'**/dist/',
|
||||
'**/coverage/',
|
||||
'**/LICENSE.md',
|
||||
'**/modules/',
|
||||
'**/node_modules/',
|
||||
'!**/.*',
|
||||
],
|
||||
},
|
||||
js.configs.recommended,
|
||||
...tseslint.configs.recommendedTypeChecked.map((config) => ({
|
||||
...config,
|
||||
files: ['**/*.{ts,js,mjs,cjs}'],
|
||||
})),
|
||||
...tseslint.configs.stylisticTypeChecked.map((config) => ({
|
||||
...config,
|
||||
files: ['**/*.{ts,js,mjs,cjs}'],
|
||||
})),
|
||||
{
|
||||
files: ['**/*.{ts,js,mjs,cjs}'],
|
||||
|
||||
linterOptions: {
|
||||
reportUnusedDisableDirectives: true,
|
||||
},
|
||||
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node,
|
||||
},
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
|
||||
parserOptions: {
|
||||
projectService: true,
|
||||
tsconfigRootDir: import.meta.dirname,
|
||||
},
|
||||
},
|
||||
|
||||
rules: {
|
||||
'sort-imports': 'error',
|
||||
},
|
||||
},
|
||||
json.configs.recommended,
|
||||
{
|
||||
files: ['**/tsconfig.json', '**/tsconfig.*.json'],
|
||||
rules: {
|
||||
'json/*': ['error', { allowComments: true }],
|
||||
},
|
||||
},
|
||||
eslintConfigPrettier,
|
||||
);
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
install-apt sl
|
||||
|
||||
exec runuser -u ubuntu renovate
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
@@ -1,16 +1,20 @@
|
||||
module.exports = {
|
||||
branchPrefix: 'test-renovate/',
|
||||
username: 'renovate-release',
|
||||
dryRun: true,
|
||||
gitAuthor: 'Renovate Bot <bot@renovateapp.com>',
|
||||
logLevel: 'debug',
|
||||
onboarding: false,
|
||||
platform: 'github',
|
||||
forkProcessing: 'enabled',
|
||||
dryRun: 'full',
|
||||
repositories: ['renovate-tests/cocoapods1', 'renovate-tests/gomod1'],
|
||||
includeForks: true,
|
||||
repositories: [
|
||||
'renovatebot/github-action',
|
||||
'renovate-tests/cocoapods1',
|
||||
'renovate-tests/gomod1',
|
||||
],
|
||||
packageRules: [
|
||||
{
|
||||
description: 'lockFileMaintenance',
|
||||
matchUpdateTypes: [
|
||||
updateTypes: [
|
||||
'pin',
|
||||
'digest',
|
||||
'patch',
|
||||
@@ -18,8 +22,8 @@ module.exports = {
|
||||
'major',
|
||||
'lockFileMaintenance',
|
||||
],
|
||||
dependencyDashboardApproval: false,
|
||||
minimumReleaseAge: null,
|
||||
masterIssueApproval: false,
|
||||
stabilityDays: 0,
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -1,29 +0,0 @@
|
||||
{
|
||||
"branchPrefix": "test-renovate/",
|
||||
"dryRun": "full",
|
||||
"username": "renovate-release",
|
||||
"gitAuthor": "Renovate Bot <bot@renovateapp.com>",
|
||||
"onboarding": false,
|
||||
"platform": "github",
|
||||
"forkProcessing": "enabled",
|
||||
"repositories": [
|
||||
"renovatebot/github-action",
|
||||
"renovate-tests/cocoapods1",
|
||||
"renovate-tests/gomod1"
|
||||
],
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "lockFileMaintenance",
|
||||
"matchUpdateTypes": [
|
||||
"pin",
|
||||
"digest",
|
||||
"patch",
|
||||
"minor",
|
||||
"major",
|
||||
"lockFileMaintenance"
|
||||
],
|
||||
"dependencyDashboardApproval": false,
|
||||
"minimumReleaseAge": "1 day"
|
||||
}
|
||||
]
|
||||
}
|
||||
Generated
+4859
File diff suppressed because it is too large.
Load diff
+42
-67
@@ -1,82 +1,57 @@
|
||||
{
|
||||
"name": "github-action",
|
||||
"version": "44.2.2",
|
||||
"private": true,
|
||||
"version": "19.230.0",
|
||||
"description": "GitHub Action to run Renovate self-hosted.",
|
||||
"homepage": "https://github.com/renovatebot/github-action#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/renovatebot/github-action/issues"
|
||||
"private": true,
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"build:dist": "cd src && ncc build ./index.ts -o ../dist",
|
||||
"build": "cd src && ncc build ./index.ts -o ../dist",
|
||||
"format": "prettier --write \"**/*.{js,jsx,vue,ts,css,less,scss,html,htm,json,md,markdown,yml,yaml}\"",
|
||||
"format:file": "prettier --write",
|
||||
"git:dist": "git add -f dist",
|
||||
"lint": "concurrently npm:lint-es",
|
||||
"lint:fix": "concurrently npm:lint-es:fix",
|
||||
"lint-es": "eslint --ext .ts,.tsx,.js,.jsx,.json .",
|
||||
"lint-es:file": "eslint --ext .ts,.tsx,.js,.jsx,.json",
|
||||
"lint-es:fix": "eslint --ext .ts,.tsx,.js,.jsx,.json --fix .",
|
||||
"lint-es:file:fix": "eslint --ext .ts,.tsx,.js,.jsx,.json --fix",
|
||||
"start": "run-s build:dist && node dist",
|
||||
"version": "run-s build:* git:*"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/renovatebot/github-action.git"
|
||||
},
|
||||
"license": "GPL-3.0-or-later",
|
||||
"author": "Jeroen de Bruijn",
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"build": "run-s clean compile",
|
||||
"clean": "rimraf dist/",
|
||||
"compile": "node tools/compile.js",
|
||||
"lint": "run-s lint-es prettier",
|
||||
"lint-es": "eslint .",
|
||||
"lint-es:file": "eslint",
|
||||
"lint-es:file:fix": "eslint --fix",
|
||||
"lint-es:fix": "eslint --fix .",
|
||||
"lint:fix": "run-s lint-es:fix prettier-fix",
|
||||
"prepare": "husky",
|
||||
"prettier": "prettier --cache --check --ignore-unknown \"{**/*,*}.*\"",
|
||||
"prettier-fix": "prettier --cache --write --ignore-unknown \"{**/*,*}.*\"",
|
||||
"release": "run-s clean build semantic-release",
|
||||
"semantic-release": "semantic-release",
|
||||
"start": "run-s build && node dist"
|
||||
"license": "GPL-3.0-or-later",
|
||||
"bugs": {
|
||||
"url": "https://github.com/renovatebot/github-action/issues"
|
||||
},
|
||||
"homepage": "https://github.com/renovatebot/github-action#readme",
|
||||
"dependencies": {
|
||||
"@actions/core": "1.11.1",
|
||||
"@actions/exec": "1.1.1"
|
||||
"@actions/core": "1.2.4",
|
||||
"@actions/exec": "1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "20.2.0",
|
||||
"@commitlint/config-conventional": "20.2.0",
|
||||
"@eslint/js": "9.39.2",
|
||||
"@semantic-release/git": "10.0.1",
|
||||
"@semantic-release/github": "12.0.2",
|
||||
"@semantic-release/npm": "13.1.3",
|
||||
"@tsconfig/node20": "20.1.8",
|
||||
"@tsconfig/strictest": "2.0.6",
|
||||
"@types/eslint-config-prettier": "6.11.3",
|
||||
"@types/node": "20.19.27",
|
||||
"conventional-changelog-conventionalcommits": "9.1.0",
|
||||
"esbuild": "0.27.2",
|
||||
"eslint": "9.39.2",
|
||||
"eslint-config-prettier": "10.1.8",
|
||||
"eslint-plugin-json": "4.0.1",
|
||||
"globals": "16.5.0",
|
||||
"husky": "9.1.7",
|
||||
"lint-staged": "16.2.7",
|
||||
"npm-run-all2": "8.0.4",
|
||||
"prettier": "3.7.4",
|
||||
"prettier-plugin-packagejson": "2.5.20",
|
||||
"rimraf": "6.1.2",
|
||||
"semantic-release": "25.0.2",
|
||||
"typescript": "5.9.3",
|
||||
"typescript-eslint": "8.50.0"
|
||||
},
|
||||
"packageManager": "pnpm@10.26.1",
|
||||
"engines": {
|
||||
"node": "^20.9.0 || ^22.11.0 || ^24.11.0",
|
||||
"pnpm": "^10.0.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"supportedArchitectures": {
|
||||
"cpu": [
|
||||
"x64"
|
||||
],
|
||||
"os": [
|
||||
"linux",
|
||||
"win32"
|
||||
]
|
||||
}
|
||||
"@commitlint/cli": "8.3.5",
|
||||
"@commitlint/config-conventional": "8.3.4",
|
||||
"@types/node": "13.13.4",
|
||||
"@typescript-eslint/eslint-plugin": "2.31.0",
|
||||
"@typescript-eslint/parser": "2.31.0",
|
||||
"@zeit/ncc": "0.22.1",
|
||||
"chalk-cli": "4.1.0",
|
||||
"concurrently": "5.2.0",
|
||||
"eslint": "6.8.0",
|
||||
"eslint-config-prettier": "6.11.0",
|
||||
"eslint-plugin-json": "2.1.1",
|
||||
"eslint-plugin-prettier": "3.1.3",
|
||||
"husky": "4.2.5",
|
||||
"lint-staged": "10.2.2",
|
||||
"next-standard-version": "2.1.2",
|
||||
"npm-run-all": "4.1.5",
|
||||
"prettier": "2.0.5",
|
||||
"standard-version": "7.1.0",
|
||||
"typescript": "3.8.3"
|
||||
}
|
||||
}
|
||||
Generated
-4434
File diff suppressed because it is too large.
Load diff
+11
-27
@@ -1,31 +1,15 @@
|
||||
import type { Input } from './input';
|
||||
import { warning } from '@actions/core';
|
||||
|
||||
export class Docker {
|
||||
private static readonly image = 'ghcr.io/renovatebot/renovate';
|
||||
private static readonly version = '42'; // renovate
|
||||
|
||||
private readonly dockerImage: string;
|
||||
private readonly fullTag: string;
|
||||
|
||||
constructor(input: Input) {
|
||||
let image = input.getDockerImage();
|
||||
let version = input.getVersion();
|
||||
|
||||
if (!image) {
|
||||
warning(`No Docker image specified, using ${Docker.image}`);
|
||||
image = Docker.image;
|
||||
}
|
||||
if (!version) {
|
||||
warning(`No Docker version specified, using ${Docker.version}`);
|
||||
version = Docker.version;
|
||||
}
|
||||
|
||||
this.dockerImage = image;
|
||||
this.fullTag = version;
|
||||
}
|
||||
class Docker {
|
||||
readonly repository = 'renovate/renovate';
|
||||
// renovate: datasource=docker depName=renovate/renovate versioning=docker
|
||||
readonly tag = '19.230.0';
|
||||
|
||||
image(): string {
|
||||
return `${this.dockerImage}:${this.fullTag}`;
|
||||
return `${this.repository}:${this.tag}`;
|
||||
}
|
||||
|
||||
version(): string {
|
||||
return this.tag;
|
||||
}
|
||||
}
|
||||
|
||||
export default Docker;
|
||||
+6
-11
@@ -1,22 +1,17 @@
|
||||
import { group, notice, setFailed } from '@actions/core';
|
||||
import { Input } from './input';
|
||||
import { Renovate } from './renovate';
|
||||
import * as core from '@actions/core';
|
||||
import Input from './input';
|
||||
import Renovate from './renovate';
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
const input = new Input();
|
||||
const renovate = new Renovate(input);
|
||||
|
||||
await group('Check Renovate version', async () => {
|
||||
const version = await renovate.runDockerContainerForVersion();
|
||||
notice(version, { title: 'Renovate CLI version' });
|
||||
});
|
||||
const renovate = new Renovate(input.configurationFile, input.token);
|
||||
|
||||
await renovate.runDockerContainer();
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
setFailed(error as Error);
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
}
|
||||
|
||||
void run();
|
||||
run();
|
||||
+12
-128
@@ -1,136 +1,20 @@
|
||||
import { getInput } from '@actions/core';
|
||||
import path from 'node:path';
|
||||
import * as core from '@actions/core';
|
||||
|
||||
export interface EnvironmentVariable {
|
||||
key: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
export class Input {
|
||||
readonly options = {
|
||||
envRegex:
|
||||
/^(?:RENOVATE_\w+|LOG_LEVEL|GITHUB_COM_TOKEN|NODE_OPTIONS|(?:HTTPS?|NO)_PROXY|(?:https?|no)_proxy)$/,
|
||||
configurationFile: {
|
||||
input: 'configurationFile',
|
||||
env: 'RENOVATE_CONFIG_FILE',
|
||||
optional: true,
|
||||
},
|
||||
token: {
|
||||
input: 'token',
|
||||
env: 'RENOVATE_TOKEN',
|
||||
optional: false,
|
||||
},
|
||||
} as const;
|
||||
readonly token: Readonly<EnvironmentVariable>;
|
||||
|
||||
private readonly _environmentVariables: Map<string, string>;
|
||||
private readonly _configurationFile: Readonly<EnvironmentVariable>;
|
||||
class Input {
|
||||
readonly configurationFile = core.getInput('configurationFile', {
|
||||
required: true,
|
||||
});
|
||||
readonly token = core.getInput('token', { required: true });
|
||||
|
||||
constructor() {
|
||||
const envRegexInput = getInput('env-regex');
|
||||
const envRegex = envRegexInput
|
||||
? new RegExp(envRegexInput)
|
||||
: this.options.envRegex;
|
||||
this._environmentVariables = new Map(
|
||||
Object.entries(process.env)
|
||||
.filter(([key]) => envRegex.test(key))
|
||||
.filter((pair): pair is [string, string] => pair[1] !== undefined),
|
||||
);
|
||||
|
||||
this.token = this.get(
|
||||
this.options.token.input,
|
||||
this.options.token.env,
|
||||
this.options.token.optional,
|
||||
);
|
||||
this._configurationFile = this.get(
|
||||
this.options.configurationFile.input,
|
||||
this.options.configurationFile.env,
|
||||
this.options.configurationFile.optional,
|
||||
);
|
||||
this.validate();
|
||||
}
|
||||
|
||||
configurationFile(): EnvironmentVariable | null {
|
||||
if (this._configurationFile.value !== '') {
|
||||
return {
|
||||
key: this._configurationFile.key,
|
||||
value: path.resolve(this._configurationFile.value),
|
||||
};
|
||||
validate(): void {
|
||||
if (this.token === '') {
|
||||
throw new Error('input.token MUST NOT be empty');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
getDockerImage(): string | null {
|
||||
return getInput('renovate-image') || null;
|
||||
}
|
||||
|
||||
getVersion(): string | null {
|
||||
return getInput('renovate-version') || null;
|
||||
}
|
||||
|
||||
mountDockerSocket(): boolean {
|
||||
return getInput('mount-docker-socket') === 'true';
|
||||
}
|
||||
|
||||
dockerSocketHostPath(): string {
|
||||
return getInput('docker-socket-host-path') || '/var/run/docker.sock';
|
||||
}
|
||||
|
||||
getDockerCmdFile(): string | null {
|
||||
const cmdFile = getInput('docker-cmd-file');
|
||||
return !!cmdFile && cmdFile !== '' ? path.resolve(cmdFile) : null;
|
||||
}
|
||||
|
||||
getDockerUser(): string | null {
|
||||
return getInput('docker-user') || null;
|
||||
}
|
||||
|
||||
getDockerVolumeMounts(): string[] {
|
||||
return getInput('docker-volumes')
|
||||
.split(';')
|
||||
.map((v) => v.trim())
|
||||
.filter((v) => !!v);
|
||||
}
|
||||
|
||||
getDockerNetwork(): string {
|
||||
return getInput('docker-network');
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert to environment variables.
|
||||
*
|
||||
* @note The environment variables listed below are filtered out.
|
||||
* - Token, available with the `token` property.
|
||||
* - Configuration file, available with the `configurationFile()` method.
|
||||
*/
|
||||
toEnvironmentVariables(): EnvironmentVariable[] {
|
||||
return [...this._environmentVariables].map(([key, value]) => ({
|
||||
key,
|
||||
value,
|
||||
}));
|
||||
}
|
||||
|
||||
private get(
|
||||
input: string,
|
||||
env: string,
|
||||
optional: boolean,
|
||||
): EnvironmentVariable {
|
||||
const fromInput = getInput(input);
|
||||
const fromEnv = this._environmentVariables.get(env);
|
||||
|
||||
if (fromInput === '' && fromEnv === undefined && !optional) {
|
||||
throw new Error(
|
||||
[
|
||||
`'${input}' MUST be passed using its input or the '${env}'`,
|
||||
'environment variable',
|
||||
].join(' '),
|
||||
);
|
||||
}
|
||||
|
||||
this._environmentVariables.delete(env);
|
||||
if (fromInput !== '') {
|
||||
return { key: env, value: fromInput };
|
||||
}
|
||||
return { key: env, value: fromEnv ?? '' };
|
||||
}
|
||||
}
|
||||
|
||||
export default Input;
|
||||
+33
-117
@@ -1,93 +1,33 @@
|
||||
import { exec, getExecOutput } from '@actions/exec';
|
||||
import { Docker } from './docker';
|
||||
import { Input } from './input';
|
||||
import fs from 'node:fs/promises';
|
||||
import path from 'node:path';
|
||||
import Docker from './docker';
|
||||
import { exec } from '@actions/exec';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
export class Renovate {
|
||||
static dockerGroupRegex = /^docker:x:(?<groupId>[1-9][0-9]*):/m;
|
||||
class Renovate {
|
||||
private configFileEnv = 'RENOVATE_CONFIG_FILE';
|
||||
private tokenEnv = 'RENOVATE_TOKEN';
|
||||
private configFileMountDir = '/github-action';
|
||||
|
||||
private configFile: string;
|
||||
private docker: Docker;
|
||||
|
||||
constructor(private input: Input) {
|
||||
this.docker = new Docker(input);
|
||||
}
|
||||
constructor(configFile: string, private token: string) {
|
||||
this.configFile = path.resolve(configFile);
|
||||
|
||||
async runDockerContainerForVersion(): Promise<string> {
|
||||
const command = `docker run -t --rm ${this.docker.image()} --version`;
|
||||
this.validateArguments();
|
||||
|
||||
const { exitCode, stdout } = await getExecOutput(command);
|
||||
if (exitCode !== 0) {
|
||||
new Error(`'docker run' failed with exit code ${exitCode}.`);
|
||||
}
|
||||
|
||||
return stdout.trim();
|
||||
this.docker = new Docker();
|
||||
}
|
||||
|
||||
async runDockerContainer(): Promise<void> {
|
||||
await this.validateArguments();
|
||||
|
||||
const dockerArguments = this.input
|
||||
.toEnvironmentVariables()
|
||||
.map((e) => `--env ${e.key}`)
|
||||
.concat([`--env ${this.input.token.key}=${this.input.token.value}`]);
|
||||
|
||||
const configurationFile = this.input.configurationFile();
|
||||
if (configurationFile !== null) {
|
||||
const baseName = path.basename(configurationFile.value);
|
||||
const mountPath = path.join(this.configFileMountDir, baseName);
|
||||
dockerArguments.push(
|
||||
`--env ${configurationFile.key}=${mountPath}`,
|
||||
`--volume ${configurationFile.value}:${mountPath}`,
|
||||
);
|
||||
}
|
||||
|
||||
if (this.input.mountDockerSocket()) {
|
||||
const sockPath = this.input.dockerSocketHostPath();
|
||||
const stat = await fs.stat(sockPath);
|
||||
if (!stat.isSocket()) {
|
||||
throw new Error(
|
||||
`docker socket host path '${sockPath}' MUST exist and be a socket`,
|
||||
);
|
||||
}
|
||||
|
||||
dockerArguments.push(
|
||||
`--volume ${sockPath}:/var/run/docker.sock`,
|
||||
`--group-add ${await this.getDockerGroupId()}`,
|
||||
);
|
||||
}
|
||||
|
||||
const dockerCmdFile = this.input.getDockerCmdFile();
|
||||
let dockerCmd: string | null = null;
|
||||
if (dockerCmdFile !== null) {
|
||||
const baseName = path.basename(dockerCmdFile);
|
||||
const mountPath = `/${baseName}`;
|
||||
dockerArguments.push(`--volume ${dockerCmdFile}:${mountPath}`);
|
||||
dockerCmd = mountPath;
|
||||
}
|
||||
|
||||
const dockerUser = this.input.getDockerUser();
|
||||
if (dockerUser !== null) {
|
||||
dockerArguments.push(`--user ${dockerUser}`);
|
||||
}
|
||||
|
||||
for (const volumeMount of this.input.getDockerVolumeMounts()) {
|
||||
dockerArguments.push(`--volume ${volumeMount}`);
|
||||
}
|
||||
|
||||
const dockerNetwork = this.input.getDockerNetwork();
|
||||
if (dockerNetwork) {
|
||||
dockerArguments.push(`--network ${dockerNetwork}`);
|
||||
}
|
||||
|
||||
dockerArguments.push('--rm', this.docker.image());
|
||||
|
||||
if (dockerCmd !== null) {
|
||||
dockerArguments.push(dockerCmd);
|
||||
}
|
||||
|
||||
const command = `docker run -t ${dockerArguments.join(' ')}`;
|
||||
const commandArguments = [
|
||||
'--rm',
|
||||
`--env ${this.configFileEnv}=${this.configFileMountPath()}`,
|
||||
`--env ${this.tokenEnv}=${this.token}`,
|
||||
`--volume ${this.configFile}:${this.configFileMountPath()}`,
|
||||
this.docker.image(),
|
||||
];
|
||||
const command = `docker run ${commandArguments.join(' ')}`;
|
||||
|
||||
const code = await exec(command);
|
||||
if (code !== 0) {
|
||||
@@ -95,45 +35,21 @@ export class Renovate {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch the host docker group of the GitHub Action runner.
|
||||
*
|
||||
* The Renovate container needs access to this group in order to have the
|
||||
* required permissions on the Docker socket.
|
||||
*/
|
||||
private async getDockerGroupId(): Promise<string> {
|
||||
const groupFile = '/etc/group';
|
||||
const groups = await fs.readFile(groupFile, {
|
||||
encoding: 'utf-8',
|
||||
});
|
||||
|
||||
/**
|
||||
* The group file has `groupname:group-password:GID:username-list` as
|
||||
* structure and we're interested in the `GID` (the group ID).
|
||||
*
|
||||
* Source: https://www.thegeekdiary.com/etcgroup-file-explained/
|
||||
*/
|
||||
const match = Renovate.dockerGroupRegex.exec(groups);
|
||||
if (match?.groups?.groupId === undefined) {
|
||||
throw new Error(`Could not find group docker in ${groupFile}`);
|
||||
}
|
||||
|
||||
return match.groups.groupId;
|
||||
}
|
||||
|
||||
private async validateArguments(): Promise<void> {
|
||||
if (/\s/.test(this.input.token.value)) {
|
||||
throw new Error('Token MUST NOT contain whitespace');
|
||||
}
|
||||
|
||||
const configurationFile = this.input.configurationFile();
|
||||
if (
|
||||
configurationFile !== null &&
|
||||
!(await fs.stat(configurationFile.value)).isFile()
|
||||
) {
|
||||
private validateArguments(): void {
|
||||
if (!fs.existsSync(this.configFile)) {
|
||||
throw new Error(
|
||||
`configuration file '${configurationFile.value}' MUST be an existing file`,
|
||||
`Could not locate configuration file '${this.configFile}'.`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
private configFileName(): string {
|
||||
return path.basename(this.configFile);
|
||||
}
|
||||
|
||||
private configFileMountPath(): string {
|
||||
return path.join(this.configFileMountDir, this.configFileName());
|
||||
}
|
||||
}
|
||||
|
||||
export default Renovate;
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"extends": "../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"sourceMap": false,
|
||||
"declaration": false,
|
||||
"rootDir": ".",
|
||||
"outDir": "dist",
|
||||
"types": ["node"]
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
// https://github.com/evanw/esbuild/issues/1921#issuecomment-1898197331
|
||||
import { createRequire } from 'node:module';
|
||||
import path from 'node:path';
|
||||
import url from 'node:url';
|
||||
|
||||
globalThis.require = createRequire(import.meta.url);
|
||||
globalThis.__filename = url.fileURLToPath(import.meta.url);
|
||||
globalThis.__dirname = path.dirname(__filename);
|
||||
@@ -1,15 +0,0 @@
|
||||
import { build } from 'esbuild';
|
||||
import { env } from 'node:process';
|
||||
|
||||
await build({
|
||||
entryPoints: ['./src/index.ts'],
|
||||
bundle: true,
|
||||
platform: 'node',
|
||||
target: 'node20',
|
||||
minify: !!env['CI'],
|
||||
tsconfig: 'tsconfig.dist.json',
|
||||
sourcemap: true,
|
||||
format: 'esm',
|
||||
outdir: './dist/',
|
||||
inject: ['tools/cjs-shim.ts'], // https://github.com/evanw/esbuild/issues/1921#issuecomment-1898197331
|
||||
});
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"extends": [
|
||||
"@tsconfig/strictest/tsconfig.json",
|
||||
"@tsconfig/node20/tsconfig.json"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"esModuleInterop": true,
|
||||
"noEmit": true
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"types": ["node"]
|
||||
},
|
||||
"files": ["./src/index.ts"]
|
||||
}
|
||||
+8
-10
@@ -1,15 +1,13 @@
|
||||
{
|
||||
"extends": [
|
||||
"@tsconfig/strictest/tsconfig.json",
|
||||
"@tsconfig/node20/tsconfig.json"
|
||||
],
|
||||
"compilerOptions": {
|
||||
"target": "es2020",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"esModuleInterop": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"outDir": "dist",
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "Bundler",
|
||||
"noImplicitAny": false,
|
||||
"noPropertyAccessFromIndexSignature": false /* makes code more complex */
|
||||
"outDir": "dist"
|
||||
},
|
||||
"exclude": ["node_modules/", "**/__mocks__/*", "dist/", "coverage/", "html/"]
|
||||
"include": ["src/**/*.ts", "bin/**/*.ts"],
|
||||
"exclude": ["node_modules", "**/*.test.ts"]
|
||||
}
|
||||
Reference in new issue
Block a user