Skip to content

Commit

Permalink
chore: add sample updownio-init action (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet authored Feb 6, 2024
1 parent 1c2b4c5 commit aee4f08
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 35 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/scans.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ jobs:
with:
url: ${{ github.event.inputs.url }}
tool: ${{ github.event.inputs.tool }}
# to create missing entries in updown.io
- id: updown-init
uses: "SocialGouv/dashlord-actions/updown-init@v1"
env:
# to create missing entries in updown.io
UPDOWNIO_API_KEY: ${{ secrets.UPDOWNIO_API_KEY }}

scans:
runs-on: ubuntu-latest
name: Scan
Expand Down
6 changes: 5 additions & 1 deletion dashlord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ entity: Votre entité
footer: Powered by SocialGouv
marianne: false
tools:
404: true
"404": true
screenshot: true
nmap: true
zap: true
Expand All @@ -22,6 +22,10 @@ tools:
ecoindex: true
dsfr: true
betagouv: true
updownioStatusPage: https://updown.io/status_pages
updownioRecipients:
- email:123456
- email:789987
urls:
- url: https://www.fabrique.social.gouv.fr
repositories:
Expand Down
48 changes: 16 additions & 32 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,31 +153,31 @@
"direction": {
"type": "string",
"default": "horizontal",
"enum": [
"horizontal",
"vertical"
]
"enum": ["horizontal", "vertical"]
}
},
"required": [
"src"
]
"required": ["src"]
}
]
},
"name": {
"type": "string"
}
},
"required": [
"logo",
"name"
]
"required": ["logo", "name"]
},
"updownioStatusPage": {
"type": "string",
"description": "URL de la page de status updown.io"
},
"updownioRecipients": {
"description": "Notifications pour les nouvelles alertes updown.io (action updown-init)",
"type": "array",
"items": {
"type": "string",
"examples": ["email:987634908723", "slack_compatible:0979867"]
}
},
"tools": {
"$ref": "#/definitions/tools"
},
Expand Down Expand Up @@ -208,31 +208,23 @@
"pages": {
"type": "array",
"description": "Additionnal URLs to scan with LightHouse",
"examples": [
"/actu",
"/partners"
],
"examples": ["/actu", "/partners"],
"items": {
"type": "string"
}
},
"repositories": {
"type": "array",
"description": "Repositories no GitHub",
"examples": [
"SocialGouv/www",
"SocialGouv/template"
],
"examples": ["SocialGouv/www", "SocialGouv/template"],
"items": {
"type": "string"
}
},
"docker": {
"type": "array",
"description": "Docker images to scan",
"examples": [
"ghcr.io/socialgouv/www/app"
],
"examples": ["ghcr.io/socialgouv/www/app"],
"items": {
"type": "string"
}
Expand All @@ -241,17 +233,9 @@
"$ref": "#/definitions/tools"
}
},
"required": [
"url"
]
"required": ["url"]
}
}
},
"required": [
"title",
"description",
"entity",
"tools",
"urls"
]
"required": ["title", "description", "entity", "tools", "urls"]
}

0 comments on commit aee4f08

Please sign in to comment.