2022-06-16 15:39:07 -04:00
name : 'Go Dependency Submission'
2022-06-16 15:38:04 -04:00
description : 'Calculates dependencies for a Go build-target and submits the list to the Dependency Submission API'
author : 'GitHub'
2022-06-15 16:36:38 -06:00
inputs :
token :
description : "GitHub Personal Access Token (PAT). Defaults to PAT provided by Action runner"
required : false
default : ${{ github.token }}
metadata :
required : false
description : 'User provided map of max key/value pairs of metadata to include with the snapshot e.g. {"lastModified": "12-31-2022"}'
go-mod-path :
required : true
2022-08-18 16:55:46 -07:00
description : 'Repo path to the go.mod file used to detect dependencies for the Go build target. Defaults to go.mod in the root of the repository.'
default : 'go.mod'
2022-06-15 16:36:38 -06:00
go-build-target :
required : true
description : 'Build target to detect build dependencies. If unspecified, will use "all", with will detect all dependencies used in all build targets (including tests and tools).'
default : 'all'
2025-05-27 22:02:13 +00:00
snapshot-sha :
description : The SHA that the results will be linked to in the dependency snapshot
type : string
required : false
default : ''
snapshot-ref :
description : The ref that the results will be linked to in the dependency snapshot
type : string
required : false
default : ''
2025-05-29 19:13:21 +00:00
# If any of detector-name, detector-version, or detector-url are provided, they all have to be provided.
# Defaults will be used if none are not provided. If only one or two are provided, the action will fail.
2025-05-27 22:02:13 +00:00
detector-name :
description : The name of the detector that generated the dependency snapshot
type : string
required : false
2025-05-29 19:13:21 +00:00
default : ''
2025-05-27 22:02:13 +00:00
detector-version :
description : The version of the detector that generated the dependency snapshot
type : string
required : false
2025-05-29 19:13:21 +00:00
default : ''
2025-05-27 22:02:13 +00:00
detector-url :
description : The URL to the detector that generated the dependency snapshot
type : string
required : false
2025-05-29 19:13:21 +00:00
default : ''
2022-06-15 16:36:38 -06:00
runs :
2025-07-30 14:07:24 +01:00
using : 'node24'
2022-06-15 16:36:38 -06:00
main : 'dist/index.js'