Require Bitbucket Workspace Discovery Evidence
Type: Rule
ID: bb-workspace-exists
Source: v2/rules/bitbucket/workspace/evidence-exists.yaml
Rego Source: evidence-exists.rego
Labels: Bitbucket, Workspace
Verify the Bitbucket Workspace exists as evidence.
note
This rule requires Bitbucket Workspace Discovery Evidence. See here for more details.
tip
Evidence IS required for this rule and will fail if missing.
tip
Signed Evidence for this rule IS NOT required by default but is recommended.
warning
Rule requires evaluation with a target. Without one, it will be disabled unless the --all-evidence
flag is provided.
Usage example
uses: bitbucket/workspace/evidence-exists@v2
Evidence Requirements
Field | Value |
---|---|
signed | False |
content_body_type | generic |
target_type | data |
predicate_type | http://scribesecurity.com/evidence/discovery/v0.1 |
asset_platform | bitbucket |
asset_type | workspace |
asset_name | Template value (see below) |
Template Value (see here for more details)
{{- if eq .Context.asset_type "workspace" -}}
{{- on_target .Context.asset_name -}}
{{- else -}}
{{- on_target nil -}}
{{- end -}}