Skip to content

Added 'api' event type to Gitlab and added new option --license-file-…#100

Merged
Douglas (dacoburn) merged 2 commits intomainfrom
doug/fix-license-file-name-and-add-gitlab-event-type
Jul 3, 2025
Merged

Added 'api' event type to Gitlab and added new option --license-file-…#100
Douglas (dacoburn) merged 2 commits intomainfrom
doug/fix-license-file-name-and-add-gitlab-event-type

Conversation

@dacoburn
Copy link
Copy Markdown
Contributor

…name that defaults to license_output.json instead of a dynamic name that could be a bad filename

Root Cause

The file name that was being generated from the repo and branch was not being serialized to a safe file name that could cause the code to error.

The api event type for gitlab wasn't supported which would cause the CLI to error.

Fix

  1. Added the api event type to the gitlab logic.
  2. Added a new param --license-file-name to use for the license file and defaults to license_output.json

Public Changelog

  • Added support for the api event type for Gitlab
  • Added a new parameter --license-file-name instead of trying to generate the file name from the repo and branch for a safer license file name.

…name that defaults to license_output.json instead of a dynamic name that could be a bad filename
@dacoburn Douglas (dacoburn) requested a review from a team as a code owner July 3, 2025 05:00
@dacoburn Douglas (dacoburn) requested review from Jeppe Hasseriis (cenobitedk) and Nolan Lawson (nolanlawson) and removed request for a team July 3, 2025 05:00
@dacoburn Douglas (dacoburn) added the Product Changelog New features for the public changelog label Jul 3, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 3, 2025

🚀 Preview package published!

Install with:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketsecurity==2.1.21.dev1

Docker image: socketdev/cli:pr-100

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedurllib3@​2.3.0 ⏵ 2.5.097 +1100100100100

View full report

@socket-security-staging
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedurllib3@​2.3.0 ⏵ 2.5.097 +1100100100100

View full report

@dacoburn Douglas (dacoburn) merged commit 9a1d030 into main Jul 3, 2025
6 checks passed
@dacoburn Douglas (dacoburn) deleted the doug/fix-license-file-name-and-add-gitlab-event-type branch July 3, 2025 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Product Changelog New features for the public changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants