Skip to content

Commit fbb918e

Browse files
Update renovate.yml
1 parent 70fd051 commit fbb918e

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/renovate.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# It uses the configuration file located at .github/renovate.json
44

55
name: Renovate
6+
67
on:
78
# Allows you to run this workflow manually from the Actions tab
89
workflow_dispatch:
@@ -13,25 +14,26 @@ on:
1314
jobs:
1415
renovate:
1516
runs-on: ubuntu-latest
16-
# Grants the GITHUB_TOKEN the necessary permissions for Renovate to read repository content and create pull requests.
17+
# 👇 Expanded permissions so Renovate can do everything it needs
1718
permissions:
18-
contents: write
19-
pull-requests: write
19+
contents: write # push branches, update files
20+
pull-requests: write # open/update PRs
21+
issues: write # create/update Dependency Dashboard issue
22+
security-events: read # read Dependabot vulnerability alerts
2023
steps:
21-
# Checks out the repository under $GITHUB_WORKSPACE, so your job can access it
24+
# Checks out the repository under $GITHUB_WORKSPACE
2225
- uses: actions/checkout@v4
26+
2327
# Runs the Renovate GitHub Action
2428
- name: Renovate
25-
# Using a slightly newer version of the action
2629
uses: renovatebot/[email protected]
2730
with:
28-
# The token is required to create pull requests.
29-
token: ${{ secrets.GITHUB_TOKEN }}
30-
# Specifies the path to your Renovate configuration file.
31+
token: ${{ secrets.GITHUB_TOKEN }} # required to create PRs/issues
3132
configurationFile: .github/renovate.json
3233
env:
33-
RENOVATE_REPOSITORIES: ${{ github.repository }} # This tells Renovate to scan the current repo
34-
# Add a build and test job that depends on renovate
34+
RENOVATE_REPOSITORIES: ${{ github.repository }} # scan current repo
35+
36+
# Optional: run your build/test workflow after Renovate finishes
3537
build_and_test:
3638
needs: renovate
3739
uses: ./.github/workflows/build-and-test.yml

0 commit comments

Comments
 (0)