|
3 | 3 | # It uses the configuration file located at .github/renovate.json |
4 | 4 |
|
5 | 5 | name: Renovate |
| 6 | + |
6 | 7 | on: |
7 | 8 | # Allows you to run this workflow manually from the Actions tab |
8 | 9 | workflow_dispatch: |
|
13 | 14 | jobs: |
14 | 15 | renovate: |
15 | 16 | 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 |
17 | 18 | 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 |
20 | 23 | steps: |
21 | | - # Checks out the repository under $GITHUB_WORKSPACE, so your job can access it |
| 24 | + # Checks out the repository under $GITHUB_WORKSPACE |
22 | 25 | - uses: actions/checkout@v4 |
| 26 | + |
23 | 27 | # Runs the Renovate GitHub Action |
24 | 28 | - name: Renovate |
25 | | - # Using a slightly newer version of the action |
26 | 29 | uses: renovatebot/[email protected] |
27 | 30 | 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 |
31 | 32 | configurationFile: .github/renovate.json |
32 | 33 | 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 |
35 | 37 | build_and_test: |
36 | 38 | needs: renovate |
37 | 39 | uses: ./.github/workflows/build-and-test.yml |
0 commit comments