Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dependabot to monitor GitHub Actions and Python dependencies #713

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pnacht
Copy link
Contributor

@pnacht pnacht commented Dec 27, 2023

Hey, it's Pedro (see #683) and I'm back with another security suggestion.

This PR is very similar to the ones I sent to Keras and KerasCV. It configures Dependabot to monitor the GitHub Actions used in TF-Keras' workflows, as well as its Python dependencies.

I've configured Dependabot to send a single monthly PR (every 1st of the month) updating all dependencies in each ecosystem (see the PRs in my fork: pnacht#1 and pnacht#3).

I have taken the liberty of merging those dependabot PRs into this one so you don't receive such PRs right after merging this one.

Note that I've told Dependabot to ignore protobuf, due to the issue mentioned here:

# Remove once both TensorFlow and TF-Keras nightly builds pass.
# Temporarily enforce 3.20.3 version, as the only version which is compatible
# with both new and old protobuf stubs. This is needed to resolve
# Keras-TensorFlow circular dependency issue, when one of them gets a dependency
# incompatible with another one (protobuf in this specific case).
protobuf==3.20.3

However, it will update numpy, despite the comment in the requirements file (shown below), since TF itself is already using a more recent version of numpy.

numpy ~= 1.24.3 # Sync with the numpy version used in TF

TF's version is 2.26.1 (see its requirements file, last updated two months ago), while Dependabot is updating TF-Keras to 2.26.2 (released one month ago). This version is likely more similar to the version used by TF, but let me know if you'd rather Dependabot ignore this dependency as well, ensuring TF-Keras' version is always equal to or older than the one used by TF.

(Following keras-team/keras#18833 (comment), I haven't sent an issue for this. Let me know if TF-Keras prefers always having an accompanying issue to discuss my contributions).

pnacht and others added 3 commits December 27, 2023 20:44
Signed-off-by: Pedro Kaj Kjellerup Nacht <[email protected]>
Bumps the github-actions group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `3` | `4` |
| [actions/github-script](https://github.com/actions/github-script) | `6` | `7` |
| [actions/cache](https://github.com/actions/cache) | `2` | `3` |
| [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) | `4` | `5` |
| [actions/stale](https://github.com/actions/stale) | `5` | `9` |


Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3...v4)

Updates `actions/github-script` from 6 to 7
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](actions/github-script@v6...v7)

Updates `actions/cache` from 2 to 3
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@v2...v3)

Updates `peter-evans/create-pull-request` from 4 to 5
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](peter-evans/create-pull-request@v4...v5)

Updates `actions/stale` from 5 to 9
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](actions/stale@v5...v9)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/stale
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updates the requirements on [scipy](https://github.com/scipy/scipy), [numpy](https://github.com/numpy/numpy), [black](https://github.com/psf/black), [isort](https://github.com/pycqa/isort) and [flake8](https://github.com/pycqa/flake8) to permit the latest version.

Updates `scipy` to 1.11.4
- [Release notes](https://github.com/scipy/scipy/releases)
- [Commits](scipy/scipy@v1.9.2...v1.11.4)

Updates `numpy` to 1.26.2
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v1.24.3...v1.26.2)

Updates `black` from 22.3.0 to 23.12.1
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@22.3.0...23.12.1)

Updates `isort` from 5.10.1 to 5.13.2
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](PyCQA/isort@5.10.1...5.13.2)

Updates `flake8` from 4.0.1 to 6.1.0
- [Commits](PyCQA/flake8@4.0.1...6.1.0)

---
updated-dependencies:
- dependency-name: scipy
  dependency-type: direct:production
  dependency-group: python
- dependency-name: numpy
  dependency-type: direct:production
  dependency-group: python
- dependency-name: black
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python
- dependency-name: isort
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: python
- dependency-name: flake8
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: python
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants