Skip to content

Commit

Permalink
checkov linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsam committed May 29, 2024
1 parent 7d32681 commit cb0cea8
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/linters/.checkov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
quiet: true
7 changes: 4 additions & 3 deletions .github/workflows/dependabot-approve-and-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ on:
pull_request:
branches: [main]

permissions:
contents: write
pull-requests: write

jobs:
dependabot-approve-and-merge:
permissions:
contents: write
pull-requests: write
secrets:
SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN: ${{ secrets.SENZING_GITHUB_CODEOWNER_PR_RW_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/dependabot-approve-and-merge.yaml@v2
3 changes: 3 additions & 0 deletions .github/workflows/docker-build-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
docker-build-container:
runs-on: ubuntu-latest
Expand Down
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
FROM ubuntu
FROM ubuntu:24.04

ENV REFRESHED_AT=2020-04-29

# Install prerequisites.

RUN apt-get update \
&& apt-get -y install \
mysql-client \
&& rm -rf /var/lib/apt/lists/*
&& apt-get -y install \
mysql-client \
&& rm -rf /var/lib/apt/lists/*

# Copy the repository's app directory.

COPY ./app /app

HEALTHCHECK CMD ["/app/healthcheck.sh"]

# Make non-root container.

USER 1001

ENTRYPOINT ["/app/docker-entrypoint.sh"]
12 changes: 12 additions & 0 deletions app/healthcheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

# Return codes.

OK=0
NOT_OK=1

# Tests.

echo "Doing healthtest."

exit ${OK}

0 comments on commit cb0cea8

Please sign in to comment.