Skip to content

SocialGouv/dashlord-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Julien Bouquillon
Oct 7, 2021
66f001a · Oct 7, 2021

History

93 Commits
Sep 28, 2021
Oct 4, 2021
Oct 7, 2021
Sep 26, 2021
Oct 6, 2021
Oct 6, 2021
Sep 2, 2021
May 31, 2021
Sep 3, 2021
Sep 29, 2021
Sep 14, 2021
Aug 26, 2021
May 31, 2021

Repository files navigation

dashlord-actions

Basic GitHub actions used in dashlord workflows.

Actions

Action Usage
init read dashloard.yml
save save a single url scan result for dashlord
report build a report.json and website from latest scans

Usage

See dashlord template repo

Development

Start website

cd report/www
yarn
yarn start

Build a new report

This will add report.json, config.json, trends.json in report/www/src based on the content of DASHLORD_REPO_PATH :

DASHLORD_URLS=http://test1.com,http://test1.com  \ # optional
DASHLORD_REPO_PATH=/path/to/some/dashlord-repo \ #optional
node report/src > report/www/src/report.json

Add a new dashlord action

  1. create a GitHub action that can produce some JSON in your scans/myaction.json
  2. In report/src/generateUrlReport, import the minimum from your action JSON to serve it to the frontend via the generated report.json
  3. In report/src/summary, add compute logic for your scanner score.
  4. Build a new report.json, see above
  5. Run yarn start in the report/www folder to start adding types from your action and UI for your component