Skip to content

Commit

Permalink
Update dependabot (#850)
Browse files Browse the repository at this point in the history
* Increase python open PRs from default 5 to 20.
* Add dependabot updates for github actions.
* Update actions and pin versions to hash for supply chain security safety.
* Add a `runtime.txt` file to trick dependabot into thinking this is the
  required version for updates.

Signed-off-by: SuperQ <[email protected]>
  • Loading branch information
SuperQ authored Apr 11, 2024
1 parent 66cafb9 commit 6c2b340
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
---
version: 2
updates:
# Note, the file `runtime.txt` is used to hint to dependabot
# the minimum version requirement for updates.
- package-ecosystem: pip
directory: "/"
schedule:
interval: monthly
target-branch: develop
labels:
- "dependencies"
open-pull-requests-limit: 20
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
image: "zookeeper:3.4.10"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/cache@v3
- uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements*.txt') }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
with:
python-version: '3.8'

Expand Down
2 changes: 2 additions & 0 deletions runtime.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
python-3.8
# Specifies the python version that dependabot should use.

0 comments on commit 6c2b340

Please sign in to comment.