Skip to content

Permission denied: 'dependabot-output.yaml'Β #412

@Gaardsholt

Description

@Gaardsholt

Describe the bug

When running this action, we get the following error, and it doesn't continue with the rest of the repos.

Checking ORG/repo for compatible package managers
Traceback (most recent call last):
  File "/action/workspace/evergreen.py", line 566, in <module>
    main()  # pragma: no cover
    ~~~~^^
  File "/action/workspace/evergreen.py", line 184, in main
    with open("dependabot-output.yaml", "w", encoding="utf-8") as yaml_file:
         ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: 'dependabot-output.yaml'

The GitHub App we are using has the following permissions:
Image

We are running it every week, and the last successful run was on 2025-09-06, no changes were made to the workflows between then and now. I just tried upgrading to the latest version, v1.24.2, but I'm still experiencing the same issue.

To Reproduce

Use this config and run the workflow:

name: Weekly dependabot checks
on:
  workflow_dispatch:
  schedule:
    - cron: "3 2 * * 6"

permissions:
  contents: read

jobs:
  evergreen:
    name: evergreen
    runs-on: ubuntu-latest
    permissions:
      issues: write

    steps:
      - name: Run evergreen action
        uses: github/[email protected]
        env:
          GH_APP_ID: ${{ secrets.GH_APP_ID }}
          GH_APP_INSTALLATION_ID: ${{ secrets.GH_APP_INSTALLATION_ID }}
          GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
          ORGANIZATION: BESTSELLER
          TITLE: "Add dependabot configuration"
          BODY: "Please add this dependabot configuration so that we can keep the dependencies in this repo up to date and secure. For help or questions please reach out to Engineering Services"
          DRY_RUN: true
          UPDATE_EXISTING: true
          BATCH_SIZE: 100

Expected behavior

That we are not getting this error, and the workflow finishes successfully.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions