diff --git a/.github/linters/.checkov.yml b/.github/linters/.checkov.yml new file mode 100644 index 0000000..c306051 --- /dev/null +++ b/.github/linters/.checkov.yml @@ -0,0 +1,6 @@ +quiet: true +skip-check: + # Ensure that HEALTHCHECK instructions have been added to container images + - CKV_DOCKER_2 + # Ensure that a user for the container has been created + - CKV_DOCKER_3 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 086d520..47b9bea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: Continuous Integration on: pull_request: + branches: + - main push: branches: - main diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index c2ac84f..7a50554 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -2,6 +2,8 @@ name: Lint Codebase on: pull_request: + branches: + - main push: branches: - main @@ -20,6 +22,8 @@ jobs: - name: Checkout id: checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Lint Codebase id: super-linter diff --git a/entrypoint.sh b/entrypoint.sh index 22c9865..d15b978 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -7,6 +7,6 @@ GREETING="Hello, $INPUT_WHO_TO_GREET!" echo "::notice file=entrypoint.sh,line=7::$GREETING" # Write outputs to the $GITHUB_OUTPUT file -echo "greeting=$GREETING" >> "$GITHUB_OUTPUT" +echo "greeting=$GREETING" >>"$GITHUB_OUTPUT" exit 0