Skip to content

DVR-97 add support to Renovate#43

Open
edro15 wants to merge 3 commits intomainfrom
dvr-97-add-renovate
Open

DVR-97 add support to Renovate#43
edro15 wants to merge 3 commits intomainfrom
dvr-97-add-renovate

Conversation

@edro15
Copy link
Collaborator

@edro15 edro15 commented Mar 13, 2026

👉 Please ensure your pull request (PR) adheres to our Contribution Guidelines 👈

Pull Request Checklist

Please check if your PR fulfills the following requirements:

  • Testing of all the changes has been performed (for bug fixes / features)
  • The docs/readme.md has been reviewed and updated if needed (for bug fixes / features)
  • Provide release notes as part of the PR submission which describe high level points about the changes
  • Verify all checks are passing
  • Do NOT use the main branch of the forked repo. Create separate feature branch for raising the PR

Pull Request Type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Documentation
  • Other (please describe): added support to renovate by adding configuration files and automation pipeline

Security Considerations (REQUIRED)

  • If you are adding an integration with 3rd party system
    • Please document in the docs/readme.md all methods (eg, OAuth) used to authenticate
      with the service that the add-on is integrating with

Release Notes (REQUIRED)

  • Provide release notes as part of the PR submission which describe high level points about the changes for the upcoming release.

Thanks for contributing! ❤️

@edro15 edro15 requested a review from a team as a code owner March 13, 2026 14:47
Comment on lines +13 to +33
name: Renovate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Get token
id: get_token
uses: actions/create-github-app-token@v2
with:
private-key: ${{ secrets.RENOVATE_PRIVATE_KEY }}
app-id: ${{ secrets.RENOVATE_APP_ID }}
owner: "splunk-platform-apps"
# The owner of the GitHub App installation
- name: Self-hosted Renovate
uses: renovatebot/github-action@v46.1.4
env:
LOG_LEVEL: debug
# Onboarding not needed for self-hosted usage
RENOVATE_ONBOARDING: "false"
with:
configurationFile: .github/renovate-config.js
token: '${{ steps.get_token.outputs.token }}'

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI about 17 hours ago

In general, the fix is to add an explicit permissions block that grants only the minimal required scopes to GITHUB_TOKEN. This can be done at the top level of the workflow (applies to all jobs) or per job. For this single-job workflow, either is fine; adding permissions at the root is simplest and keeps the job body unchanged.

Best minimal fix without altering existing functionality:

  • Add a permissions block at the root level (same indentation as on: and jobs:) after concurrency: renovate (or before, as long as indentation is correct).
  • Start from contents: read as the minimal baseline. Renovate usually needs to read repository contents and may also need to open or update pull requests. However, Renovate in this setup appears to use a GitHub App token (steps.get_token.outputs.token) for its write operations, so the GITHUB_TOKEN itself can safely be read-only unless the workflow uses it elsewhere (it does not in the shown snippet).
  • Thus, define:
    permissions:
      contents: read
  • No imports or additional methods are needed; this is a pure YAML configuration change.

This change should be placed in .github/workflows/renovate.yml after line 9 (concurrency: renovate) to keep the file structure clear and avoid altering job logic.

Suggested changeset 1
.github/workflows/renovate.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml
--- a/.github/workflows/renovate.yml
+++ b/.github/workflows/renovate.yml
@@ -7,6 +7,8 @@
   workflow_dispatch:
 
 concurrency: renovate
+permissions:
+  contents: read
 
 jobs:
   renovate:
EOF
@@ -7,6 +7,8 @@
workflow_dispatch:

concurrency: renovate
permissions:
contents: read

jobs:
renovate:
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant