Skip to main content

Gcp/containeranalysis

@swamp/gcp/containeranalysisv2026.10.29.1· AGPL-3.0-or-later· 2d agoBEHAVIORS
01README

Google Cloud containeranalysis infrastructure models

02Release Notes
  • Updated: notes_occurrences, occurrences
03Behaviors3
@swamp/gcp/containeranalysis/notesv2026.10.23.1notes.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
aiSkillAnalysis?objectA note describing an AI skill analysis.
attestation?objectA note describing an attestation role.
build?objectA note describing build provenance for a verifiable build.
compliance?objectA note describing a compliance check.
deployment?objectA note describing something that can be deployed.
discovery?objectA note describing the initial analysis of a resource.
dsseAttestation?objectA note describing a dsse attestation note.
expirationTime?stringTime of expiration for this note. Empty if note does not expire.
image?objectA note describing a base image.
longDescription?stringA detailed description of this note.
package?objectA note describing a package hosted by various package managers.
relatedNoteNames?arrayOther notes related to this note.
relatedUrl?arrayURLs associated with this note.
sbomReference?objectA note describing an SBOM reference.
secret?objectA note describing a secret.
shortDescription?stringA one sentence description of this note.
upgrade?objectA note describing available package upgrades.
vulnerability?objectA note describing a package vulnerability.
vulnerabilityAssessment?objectA note describing a vulnerability assessment.
noteId?stringRequired. The ID to use for this note.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create()
Create a notes
fn get(identifier: string)
Get a notes
ArgumentTypeDescription
identifierstringThe name of the notes
fn update(identifier?: string)
Update notes attributes
ArgumentTypeDescription
identifier?stringTarget a specific notes by name (e.g. one discovered by list)
fn delete(identifier: string)
Delete the notes
ArgumentTypeDescription
identifierstringThe name of the notes
fn sync(identifier?: string)
Sync notes state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific notes by name (e.g. one discovered by list)
fn list(filter?: string, pageSize?: number, returnPartialSuccess?: boolean, maxPages?: number)
List notes resources
ArgumentTypeDescription
filter?stringThe filter expression.
pageSize?numberNumber of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20.
returnPartialSuccess?booleanIf set, the request will return all reachable Notes and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn batch_create(notes?: any)
batch create
ArgumentTypeDescription
notes?any
fn get_iam_policy(options?: any)
get iam policy
ArgumentTypeDescription
options?any
fn set_iam_policy(policy?: any)
set iam policy
ArgumentTypeDescription
policy?any
fn test_iam_permissions(permissions?: any)
test iam permissions
ArgumentTypeDescription
permissions?any

Resources

state(infinite)— A type of analysis that can be done for a resource.
@swamp/gcp/containeranalysis/notes-occurrencesv2026.10.29.1notes_occurrences.ts

Global Arguments

ArgumentTypeDescription
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
namestringRequired. The name of the note to list occurrences for in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
fn get(identifier: string)
Get a occurrences
ArgumentTypeDescription
identifierstringThe name of the occurrences
fn sync(identifier?: string)
Sync occurrences state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific occurrences by name (e.g. one discovered by list)
fn list(filter?: string, pageSize?: number, maxPages?: number)
List occurrences resources
ArgumentTypeDescription
filter?stringThe filter expression.
pageSize?numberNumber of occurrences to return in the list.
maxPages?numberMaximum number of pages to fetch (default: 10)

Resources

state(infinite)— An instance of an analysis type that has been found on a resource.
@swamp/gcp/containeranalysis/occurrencesv2026.10.29.1occurrences.ts

Global Arguments

ArgumentTypeDescription
namestringInstance name for this resource (used as the unique identifier in the factory pattern)
accessToken?stringGCP OAuth2 access token; overrides GCP_ACCESS_TOKEN environment variable. Wire with a vault.get(...) expression to source it from a vault.
credentialsJson?stringGCP service account JSON credentials; overrides GOOGLE_APPLICATION_CREDENTIALS_JSON environment variable. Wire with a vault.get(...) expression to source it from a vault.
project?stringGCP project ID; overrides GCP_PROJECT / GOOGLE_CLOUD_PROJECT environment variables.
scopes?stringComma-separated OAuth scopes to request when minting access tokens via gcloud. Defaults to the API's Discovery Document scopes.
quotaProject?stringGCP project ID for quota and billing attribution; sets the x-goog-user-project header. Overrides GOOGLE_CLOUD_QUOTA_PROJECT environment variable. Required for APIs like Cloud Identity when using user credentials.
apiEndpoint?stringCustom API endpoint for emulators; overrides GCP_API_ENDPOINT environment variable. Defaults to the service's production URL.
advisoryPublishTime?stringThe time this advisory was published by the source.
aiSkillAnalysis?objectDescribes an AI skill analysis.
attestation?objectDescribes an attestation of an artifact.
build?objectDescribes a verifiable build.
compliance?objectDescribes a compliance violation on a linked resource.
deployment?objectDescribes the deployment of an artifact on a runtime.
discovery?objectDescribes when a resource was discovered.
dsseAttestation?objectDescribes an attestation of an artifact using dsse.
envelope?objecthttps://github.com/secure-systems-lab/dsse
image?objectDescribes how this resource derives from the basis in the associated note.
noteName?stringRequired. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
package?objectDescribes the installation of a package on the linked resource.
remediation?stringA description of actions that can be taken to remedy the note.
resourceUri?stringRequired. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.
sbomReference?objectDescribes a specific SBOM reference occurrences.
secret?objectDescribes a secret.
upgrade?objectDescribes an available package upgrade on the linked resource.
vulnerability?objectDescribes a security vulnerability.
location?stringThe location for this resource (e.g., 'us', 'us-central1', 'europe-west1')
fn create()
Create a occurrences
fn get(identifier: string)
Get a occurrences
ArgumentTypeDescription
identifierstringThe name of the occurrences
fn update(identifier?: string)
Update occurrences attributes
ArgumentTypeDescription
identifier?stringTarget a specific occurrences by name (e.g. one discovered by list)
fn delete(identifier: string)
Delete the occurrences
ArgumentTypeDescription
identifierstringThe name of the occurrences
fn sync(identifier?: string)
Sync occurrences state from GCP
ArgumentTypeDescription
identifier?stringTarget a specific occurrences by name (e.g. one discovered by list)
fn list(filter?: string, pageSize?: number, returnPartialSuccess?: boolean, maxPages?: number)
List occurrences resources
ArgumentTypeDescription
filter?stringThe filter expression.
pageSize?numberNumber of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20.
returnPartialSuccess?booleanIf set, the request will return all reachable Occurrences and report all unreachable regions in the `unreachable` field in the response. Only applicable for requests in the global region.
maxPages?numberMaximum number of pages to fetch (default: 10)
fn batch_create(occurrences?: any)
batch create
ArgumentTypeDescription
occurrences?any
fn get_iam_policy(options?: any)
get iam policy
ArgumentTypeDescription
options?any
fn get_notes()
get notes
fn get_vulnerability_summary(filter?: any, returnPartialSuccess?: any)
get vulnerability summary
ArgumentTypeDescription
filter?any
returnPartialSuccess?any
fn set_iam_policy(policy?: any)
set iam policy
ArgumentTypeDescription
policy?any
fn test_iam_permissions(permissions?: any)
test iam permissions
ArgumentTypeDescription
permissions?any

Resources

state(infinite)— An instance of an analysis type that has been found on a resource.
04Previous Versions19
2026.10.23.1AGPL-3.0-or-later(was none)
  • Updated: notes, notes_occurrences, occurrences
2026.10.13.1
  • Updated: notes, notes_occurrences, occurrences
2026.09.07.1
  • Updated: occurrences
2026.09.03.1
  • Updated: notes_occurrences, occurrences
2026.08.28.1
  • Updated: notes_occurrences, occurrences
2026.08.18.1
  • Updated: notes, occurrences
2026.08.14.1
  • Updated: notes_occurrences, occurrences
2026.08.12.2
  • Updated: notes, notes_occurrences, occurrences
2026.07.29.1
  • Updated: notes, notes_occurrences, occurrences
2026.07.21.4
  • Updated: notes, notes_occurrences, occurrences
2026.07.21.1
  • Updated: notes, occurrences
2026.07.20.2
  • Updated: notes, notes_occurrences, occurrences
2026.07.20.1
  • Updated: notes, notes_occurrences, occurrences
2026.07.19.2
  • Updated: notes_occurrences
2026.07.19.1
  • Updated: notes, notes_occurrences, occurrences
2026.07.18.2
  • Updated: notes, notes_occurrences, occurrences
2026.07.17.2
  • Updated: notes, occurrences
2026.07.17.1
  • Updated: notes, occurrences
2026.07.13.1
  • Updated: occurrences
05Stats
A
100 / 100
Downloads
36
Archive size
136.1 KB
Verified by Swamp
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Docs keep secrets in a vault1/1earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License2/2earned
  • Verified public repository2/2earned
06Platforms
07Labels