Skip to content

Commit

Permalink
Merge pull request #406 from danskernesdigitalebibliotek/fix-dependab…
Browse files Browse the repository at this point in the history
…ot-2

Fix dependabot round 2
  • Loading branch information
kasperg authored Oct 11, 2023
2 parents 8fb3c9b + 66f2d40 commit 1cf0a4c
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 63 deletions.
134 changes: 71 additions & 63 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,75 @@
# Dependabot configuration files that automate our dependency updates by creating pull requests.
# The PRs are labeled and grouped by package ecosystem and semver update type.
# We intentionally use grouping and pull request limits to avoid creating too many PRs and
# exhausting the number of available pull requests in Lagoon.
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
open-pull-requests-limit: 2
groups:
minor-github-actions-dependencies:
update-types:
- "minor"
- "patch"
schedule:
interval: weekly
timezone: Europe/Copenhagen
labels:
- "dependencies"
- "github_actions"
- package-ecosystem: composer
directory: "/"
open-pull-requests-limit: 3
groups:
drupal-core-minor-major-releases:
patterns:
- "drupal/core*"
update-types:
- "major"
- "minor"
drupal-core-patch-releases:
patterns:
- "drupal/core*"
update-types:
- "patch"
schedule:
interval: weekly
timezone: Europe/Copenhagen
labels:
- "dependencies"
- "drupal"
- package-ecosystem: composer
directory: "dev-scripts/"
open-pull-requests-limit: 2
groups:
minor-composer-dependencies:
update-types:
- "minor"
- "patch"
schedule:
interval: weekly
timezone: Europe/Copenhagen
labels:
- "dependencies"
- "dev-scripts"
- package-ecosystem: npm
directory: "/"
open-pull-requests-limit: 2
groups:
minor-js-dependencies:
update-types:
- "minor"
- "patch"
schedule:
interval: weekly
timezone: Europe/Copenhagen
labels:
- "dependencies"
- "js-dependencies"
- package-ecosystem: github-actions
directory: "/"
open-pull-requests-limit: 2
groups:
minor-github-actions-dependencies:
update-types:
- "minor"
- "patch"
schedule:
interval: weekly
timezone: Europe/Copenhagen
labels:
- "dependencies"
- "github_actions"
- package-ecosystem: composer
directory: "/"
open-pull-requests-limit: 3
groups:
minor-composer-dependencies:
update-types:
- "minor"
- "patch"
exclude-patterns:
- "drupal/core*"
drupal-core-minor-major-releases:
patterns:
- "drupal/core*"
update-types:
- "major"
- "minor"
drupal-core-patch-releases:
patterns:
- "drupal/core*"
update-types:
- "patch"
schedule:
interval: weekly
timezone: Europe/Copenhagen
labels:
- "dependencies"
- "drupal"
- package-ecosystem: composer
directory: "/dev-scripts"
open-pull-requests-limit: 2
groups:
minor-composer-dependencies:
update-types:
- "minor"
- "patch"
schedule:
interval: weekly
timezone: Europe/Copenhagen
labels:
- "dependencies"
- "dev-scripts"
- package-ecosystem: npm
directory: "/"
open-pull-requests-limit: 2
groups:
minor-js-dependencies:
update-types:
- "minor"
- "patch"
schedule:
interval: weekly
timezone: Europe/Copenhagen
labels:
- "dependencies"
- "js-dependencies"
6 changes: 6 additions & 0 deletions .github/workflows/lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
name: Check environment
runs-on: ubuntu-latest
if: ${{ github.event.action == 'opened' || github.event.action == 'reopened' || github.event.action == 'synchronize' }}
permissions:
# Give the default GITHUB_TOKEN permission to create and update deployments
deployments: write
steps:
- name: Generate environment data
id: environment
Expand Down Expand Up @@ -67,6 +70,9 @@ jobs:
name: Close environment
runs-on: ubuntu-latest
if: ${{ github.event.action == 'closed' }}
permissions:
# Give the default GITHUB_TOKEN permission to close deployments.
deployments: write
steps:
- name: Generate environment data
id: environment
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/translate-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
name: Publish translations to Github Pages
runs-on: ubuntu-latest
if: ${{ contains(github.event.head_commit.message, 'POEditor.com') }}
permissions:
# Give the default GITHUB_TOKEN permission to update GitHub Pages.
pages: write
steps:
- uses: actions/checkout@master
with:
Expand Down

0 comments on commit 1cf0a4c

Please sign in to comment.