Skip to content

Releases: thedave42/generate-dependencies-csv-action

Fix header row to ensure its always on top

08 Feb 21:48
f33ebe8
Compare
Choose a tag to compare

This release patches a bug in the v5 release that caused the header row to appear in a different location than the first row.

What's Changed

Full Changelog: v5...v6

Follow transitives

10 Jan 18:44
983409b
Compare
Choose a tag to compare

NOTE: Major update that changes the format of the output file

generate-dependencies-csv-action

This action generates a tab delimited file that contains a list of the depenencies, their version, and their license info for the dependencies detected by GitHub's Dependency Graph in each of the specified repos. The csv file or files will be attached as an artifact to the action run at its conclusion.

image

The Action will query the GitHub GraphQL API for the manifest information detected by Depedency Graph. The file contains the following information:

  • packageName: The name of the package in the canonical form used by the package manager.
  • packageVersion: The dependency version requirements.
  • packageEcosystem: The dependency package manager. (e.g. npm, Maven, etc.)
  • manifestOwner: The org/repo that contains the detected dependencies manifest.
  • manifestFilename: The name of the manifest file that contains the dependency.
  • packageLicenseName: The license full name specified by https://spdx.org/licenses.
  • packageLicenseId: Short identifier specified by https://spdx.org/licenses.
  • packgeLicenseUrl: URL to the license on https://choosealicense.com.
  • packageHasDependencies: Indicates whether this package also has dependencies. (boolean)

Inputs

repo-token

REQUIRED: The GITHUB_TOKEN secret. Make sure this token has rights to all the repos you want to catalog.

repo-names

REQUIRED: A comma separated list of repository names to catalog.

org-name

The name of the owner/organization that contains the repositories (defaults to current repository owner).

depth

The depth of transitive dependencies to report on. Defaults to 0, which will not include transitives (i.e. it will only list packages from manifests found in the repo). Higher numbers will include transitive dependencies by including the manifests from the included packages' repos as well, but can significantly increase scan time.

Example usage

- name: Generate dependencies action
  uses: thedave42/generate-dependencies-csv-action@v5
  with:
    repo-token: ${{ secrets.YOUR_TOKEN }}
    org-name: thedave42
    repo-names: repo1,repo2,repo3

Fix order of license name/id to match header

05 Jan 21:10
6a211f7
Compare
Choose a tag to compare

Add dependency license details

04 Jan 23:11
Compare
Choose a tag to compare

This version will add each dependency's license information to the csv file. The info added is:

Scan multiple repos in a org

08 Mar 21:44
7f64ee4
Compare
Choose a tag to compare

Add ability to scan multiple repos from single call

First release of action

06 Mar 00:45
Compare
Choose a tag to compare