Skip to content

feat(renovate): onboard Renovate with fleet-standard config #108

feat(renovate): onboard Renovate with fleet-standard config

feat(renovate): onboard Renovate with fleet-standard config #108

Workflow file for this run

---

Check failure on line 1 in .github/workflows/auto-merge.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/auto-merge.yml

Invalid workflow file

(Line: 4, Col: 1): Unexpected value 'title', (Line: 7, Col: 1): Unexpected value 'category', (Line: 8, Col: 1): Unexpected value 'usage', (Line: 9, Col: 1): Unexpected value 'behavior', (Line: 10, Col: 1): Unexpected value 'inputs', (Line: 11, Col: 1): Unexpected value 'outputs', (Line: 12, Col: 15): Unexpected value 'step-security/harden-runner@v2.12, gh CLI', (Line: 13, Col: 1): Unexpected value 'author', (Line: 14, Col: 1): Unexpected value 'last_modified', (Line: 15, Col: 1): Unexpected value 'changelog'
# Front-Matter for GitHub Workflow
title: "Renovate Auto-Merge"
name: "auto-merge.yml"
description: "Automatically approve and merge renovate pull requests when labeled"
category: ci
usage: "Trigger on renovate pull request events (opened, labeled, synchronize)"
behavior: "Approves and auto-merges PRs created by renovate[bot]"
inputs: "GitHub pull_request event payload; secrets: GITHUB_TOKEN" # pragma: allowlist secret
outputs: "PR merged status"
dependencies: "step-security/harden-runner@v2.12, gh CLI"
author: "Byron Williams"
last_modified: "2023-11-15"
changelog: "Converted to front-matter format according to annotation spec"
tags: [automation, dependabot]
---
name: Renovate Auto-Merge
on:
pull_request:
types: [opened, labeled, synchronize]
permissions:
contents: write
pull-requests: write
jobs:
auto-merge:
if: github.actor == 'renovate[bot]'
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@v2.12
with:
egress-policy: audit
- name: Approve the PR
run: |
gh pr review --approve "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Enable auto-merge
run: |
gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{ github.event.pull_request.html_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}