Skip to content

build(deps): bump gitpython from 3.1.3 to 3.1.30#130

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

build(deps): bump gitpython from 3.1.3 to 3.1.30#130
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/pip/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.3 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.3 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.3...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
@dependabot dependabot Bot force-pushed the dependabot/pip/gitpython-3.1.30 branch from 1e9dda3 to a58298a Compare January 27, 2023 15:54
@progovoy progovoy force-pushed the dependabot/pip/gitpython-3.1.30 branch from a58298a to f43f37b 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 specifying the minimal required scopes for GITHUB_TOKEN. For this workflow, none of the steps rely on GITHUB_TOKEN for write operations to the repository or GitHub API; they rely instead on PyPI credentials in secrets. Therefore, we can safely set the default to read-only repository contents. The most straightforward and least invasive fix is to add permissions: contents: read at the workflow root so it applies to all jobs.

Concretely:

  • Edit .github/workflows/build-and-upload-vmn.yml.
  • Add a permissions: block just after the name: declaration and before on:. This will apply to the entire workflow since no job-level permissions are defined.
  • Use contents: read as a minimal starting point, matching the CodeQL suggestion and least-privilege principle.
  • No imports or other code changes are required; we are only adjusting workflow metadata.
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