Skip to content

Dockerize always fails for dependabot PRs #670

@jtherrmann

Description

@jtherrmann

The dockerize job always fails at AWS auth here for dependabot PRs with The security token included in the request is invalid. Re-running the job has the same results. The only workaround is to close and re-open the dependabot PR.

According to Copilot:

  • Dependabot PRs are considered "forked" PRs and run with restricted permissions.
  • Repository secrets are NOT available to workflows running on PRs from forks for security reasons.

The easiest resolution here is probably to skip the dockerize job for dependabot PRs, e.g:

jobs:
  dockerize:
    if: github.actor != 'dependabot[bot]'
    ...

Our tests and static analysis are probably sufficient to catch any bugs that would have surfaced during the Docker build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions