Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Skip deploy workflow for Dependabot
Browse files Browse the repository at this point in the history
Dependabot does not have permissions to create deployments. This causes 
the workflow to fail.

According to GitHub having Dependabot run with read-only scopes is 
intentional and the recommended approach is to skip running such 
workflows based on branch naming:
https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning/resource-not-accessible-by-integration
  • Loading branch information
kasperg committed Sep 25, 2023
1 parent 61d4234 commit 3da8244
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Deployment

on: push
on:
push:
branches-ignore:
# Dependabot does not have permissions to create releases
- 'dependabot/**'

jobs:
deploy_release:
Expand Down

0 comments on commit 3da8244

Please sign in to comment.