Skip to main content

ScopeReportLocation

Define a report, what it includes, what it looks like, and where to upload to.

Templates

By default, scope has 3 provided templates title, analyze, and doctor.

title is used to determine the title of the issue (if supported), analyze is used when scope analyze is run, and doctor is used when scope doctor is run.

Each of those templates are defined in a Jinja2 format, and they have different options available.

variabledescriptionexample inputavailable in
entrypointThe scope command runscope doctor runtitle, analyze, doctor
commandThe scope command runscope doctor runanalyze, doctor
groupsOutput from each group run with doctor{ name: string, actions: []{ check: [], fix: [], validate: [] }, additional_data: [string]:stringdoctor
additionalDataAdditional data from location[]{ name: string, command: string, output: string }doctor, analyze
resultOutput from the command{command: string, exit_code: i32, start_time: string, end_time: string, output: string}analyze

GitHub Issues

When reporting to GitHub Issues, the env-var SCOPE_GH_TOKEN must be set to get the API token. When reporting to GitHub Issues, multiple authentication methods are supported:

  1. GitHub App: SCOPE_GH_APP_ID and SCOPE_GH_APP_KEY
  2. Personal Access Token: SCOPE_GH_TOKEN
---
apiVersion: scope.github.com/v1alpha
kind: ScopeReportLocation
metadata:
name: github
spec:
destination:
githubIssue:
owner: ethankhall
repo: dummy-repo

RustyPaste

RustyPaste is a pastebin style application. This may be a better choice when you can't require GitHub API token, or if there is a risk of sensitive data that shouldn't be in GitHub.

---
apiVersion: scope.github.com/v1alpha
kind: ScopeReportLocation
metadata:
name: report
spec:
destination:
rustyPaste:
url: http://localhost:8000

Schema

Loading ....