Fix scrolling in Security Report (#451)

* Fix scrolling in Security Report

Also add an automatic action to update the test deployment on push/merge.

* Fix deployment default
This commit is contained in:
Bruno Bernardino 2022-05-20 15:07:24 +01:00 committed by GitHub
parent 9fb954e560
commit 570a886bab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 3 deletions

40
.github/workflows/update-deployment.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Update Deployments
on:
workflow_dispatch:
inputs:
instance:
type: choice
description: "Instance name"
default: "test"
options:
- test
- beta
required: true
push:
branches:
- "v4"
- "master"
paths:
- "packages/app/**"
- "packages/core/**"
- "packages/locale/**"
- "assets/**"
jobs:
trigger-gh-action:
runs-on: ubuntu-latest
steps:
- name: Trigger GH Action
run: |
curl --request POST \
--url https://api.github.com/repos/padloc/devops/actions/workflows/update-deployment.yml/dispatches \
--header 'Authorization: Basic ${{ secrets.DEVOPS_BASIC_AUTH_TOKEN }}' \
--header 'Content-Type: application/json' \
--data '{
"inputs": {
"instance": "${{ github.event.inputs.instance || \'test\' }}",
"branch": "${{ github.sha }}"
}
}'

View File

@ -119,9 +119,7 @@ export class Audit extends StateMixin(Routing(View)) {
)}
</div>
</header>
<div class="vertical layout padded stretch">
<pl-scroller class="stretch"> ${this._renderResults()} </pl-scroller>
</div>
<pl-scroller class="stretch vertically-padded"> ${this._renderResults()} </pl-scroller>
</div>
`;
}