Skip to content

build(deps): bump gitpython from 3.1.18 to 3.1.30 in /tests#129

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/tests/gitpython-3.1.30
Open

build(deps): bump gitpython from 3.1.18 to 3.1.30 in /tests#129
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/tests/gitpython-3.1.30

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jan 27, 2023

Copy link
Copy Markdown
Contributor

Bumps gitpython from 3.1.18 to 3.1.30.

Release notes

Sourced from gitpython's releases.

v3.1.30 - with important security fixes

See gitpython-developers/GitPython#1515 for details.

3.1.20

No release notes provided.

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language

You can disable automated security fix PRs for this repo from the Security Alerts page.

> **Note** > Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.18 to 3.1.30.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](gitpython-developers/GitPython@3.1.18...3.1.30)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jan 27, 2023
@progovoy progovoy force-pushed the dependabot/pip/tests/gitpython-3.1.30 branch from 4ad42f8 to b1f813e Compare March 25, 2026 12:55
Comment on lines +23 to +60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
python3 -m pip install -U pip
python3 -m pip install -r tests/test_requirements.txt
python3 -m pip install -r tests/requirements.txt
python3 -m pip list
git config --global user.email "you@example.com"
git config --global user.name "Your Name"


- name: run tests
run: |
make check

- name: run vmn stamp version
run: |
python3 -m pip install vmn
git status
make _${{ github.event.inputs.version_type }}
git status
cat .vmn/vmn.log

- name: build pkg
run: |
make _build
ls -ltrh ./dist/

- name: Publish a Python distribution to PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
ls -ltrh ./dist/
make upload

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 3 months ago

In general, the fix is to add an explicit permissions block to the workflow (or to the specific job) that restricts the GITHUB_TOKEN to the least privileges required. For a build-and-publish job like this that only uses PyPI credentials and does not interact with the GitHub API, the GITHUB_TOKEN can be limited to read-only repository contents, or even permissions: {} if no token access is needed at all. However, GitHub recommends at least specifying contents: read as a minimal starting point.

The best fix here, without changing existing functionality, is to add a top-level permissions block right after the workflow name: line. This ensures every job in this workflow (currently just build_pkg) inherits the restricted token permissions. Based on the shown steps, the workflow does not appear to require any write permissions to GitHub; it only needs to clone the repository (handled by actions/checkout, which works with contents: read). Therefore, we can safely set:

permissions:
  contents: read

No additional imports or methods are required; this is purely a YAML configuration change in .github/workflows/build-and-upload-vmn.yml.

Suggested changeset 1
.github/workflows/build-and-upload-vmn.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/build-and-upload-vmn.yml b/.github/workflows/build-and-upload-vmn.yml
--- a/.github/workflows/build-and-upload-vmn.yml
+++ b/.github/workflows/build-and-upload-vmn.yml
@@ -3,6 +3,9 @@
 
 name: Build vmn package and upload to PyPI
 
+permissions:
+  contents: read
+
 on:
 
   workflow_dispatch:
EOF
@@ -3,6 +3,9 @@

name: Build vmn package and upload to PyPI

permissions:
contents: read

on:

workflow_dispatch:
Copilot is powered by AI and may make mistakes. Always verify output.
@progovoy progovoy force-pushed the master branch 2 times, most recently from 064a4cd to 9a9df1d Compare March 25, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant