Merge pull request #116 from elliotmatson/renovate/github-super-linter-6.x

Update github/super-linter action to v6
This commit is contained in:
Elliot Matson 2024-05-09 19:47:30 -05:00 committed by GitHub
commit 610adf446d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 19 additions and 14 deletions

View File

@ -15,6 +15,8 @@ on:
release:
types: [published, edited]
workflow_dispatch:
permissions: read-all
env:
REGISTRY: ghcr.io
@ -73,14 +75,3 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.DOCKER_IMAGE }}
format: 'sarif'
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

View File

@ -6,6 +6,8 @@ on:
pull_request:
branches: [main]
permissions: read-all
jobs:
run-lint:
name: Lint
@ -18,7 +20,7 @@ jobs:
fetch-depth: 0
- name: Lint Code Base
uses: github/super-linter@v5
uses: github/super-linter@v6
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main

View File

@ -5,6 +5,8 @@ on:
pull_request:
workflow_dispatch:
permissions: read-all
jobs:
test:
name: Test Stack
@ -18,4 +20,4 @@ jobs:
- name: Check database creation
run: docker compose logs | grep "Success. You can now start the database server"
- name: Check postgres init
run: docker compose logs | grep "PostgreSQL init process complete; ready for start up."
run: docker compose logs | grep "PostgreSQL init process complete; ready for start up."

View File

@ -4,6 +4,10 @@ on:
- cron: '0 */1 * * *'
workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest

View File

@ -1,7 +1,13 @@
FROM python:3.12-alpine
RUN useradd -m pgadmin-config-creator
USER pgadmin-config-creator
RUN mkdir /app
RUN mkdir /config
COPY . /app
WORKDIR /app
CMD ["python", "app.py"]
HEALTHCHECK CMD test -f /config/servers.json || exit 1
HEALTHCHECK CMD test -f /config/servers.json || exit 1