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: release:
types: [published, edited] types: [published, edited]
workflow_dispatch: workflow_dispatch:
permissions: read-all
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io
@ -73,14 +75,3 @@ jobs:
push: true push: true
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} 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: pull_request:
branches: [main] branches: [main]
permissions: read-all
jobs: jobs:
run-lint: run-lint:
name: Lint name: Lint
@ -18,7 +20,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Lint Code Base - name: Lint Code Base
uses: github/super-linter@v5 uses: github/super-linter@v6
env: env:
VALIDATE_ALL_CODEBASE: false VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main DEFAULT_BRANCH: main

View File

@ -5,6 +5,8 @@ on:
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
permissions: read-all
jobs: jobs:
test: test:
name: Test Stack name: Test Stack
@ -18,4 +20,4 @@ jobs:
- name: Check database creation - name: Check database creation
run: docker compose logs | grep "Success. You can now start the database server" run: docker compose logs | grep "Success. You can now start the database server"
- name: Check postgres init - 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 * * *' - cron: '0 */1 * * *'
workflow_dispatch: workflow_dispatch:
permissions:
issues: write
pull-requests: write
jobs: jobs:
stale: stale:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

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