dashlord icon indicating copy to clipboard operation
dashlord copied to clipboard

init dashlord from beta.gouv metadatas

Open vviers opened this issue 3 years ago • 3 comments

voir le diff entre dashlord.yml et l'API beta

  • utiliser stats_url et budget_url pour la colonne stats (resp. buget)
  • ajouter colonne pour l'analyse de risque (A: adresse présente, et renvoie une 200)

vviers avatar Nov 30 '21 11:11 vviers

As of today (API v2.3) we have :

dashlord.yml beta.gouv.fr API note
url data[i].attributes.link Seulement 1 url dans API
repositories data[i].attributes.repository Seulement 1 repository dans API
category data[i].type Aujourd'hui l'API ne liste que des SE (pas de catégorie BINUM ou API par exemple)
tags 🚫 on pourrait en générer certains automatiquement par exemple avec le nom de la SE
tools 🚫 spécifique à Dashlord

vviers avatar Nov 30 '21 11:11 vviers

tinkering with a new dashlord.yml format :

title: some meta
tools:
  nmap: true
  lighthouse: true
  trivy: true
targets: 
  - label: cdtn
    betagouvId: code-du-travail # to fetch SE data
    tags: # metadata
      - travail
      - startup
    docker: # containers scans
      - ghcr.io/socialgouv/cdtn-front
      - ghcr.io/socialgouv/cdtn-api
    repositories: # fetch GitHub data
      - socialgouv/code-du-travail-numerique
    urls: # scan multiple urls
      - label: homepage
        url: "https://code.travail.gouv.fr"
      - label: contact
        url: "https://code.travail.gouv.fr/contact"
      - label: API
        type: api
        url: "https://api.code.travail.gouv.fr"
    tools:
      nmap: false

revolunet avatar Feb 16 '22 23:02 revolunet

Looks good ! 👏🏼 I can help with the script fetching SE data from the beta.gouv API

vviers avatar Feb 17 '22 10:02 vviers

a priori c'est réglé :)

revolunet avatar Jul 04 '24 08:07 revolunet