Bump github/codeql-action from 2.21.9 to 3.22.11 #168
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-simple | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
jobs: | |
container: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: prepare environment variables | |
run: | | |
shortSha=`echo ${GITHUB_SHA} | cut -c1-7` | |
echo "IMAGE_NAME=acm-workshop:$shortSha" >> $GITHUB_ENV | |
- name: build container | |
run: | | |
cd app | |
docker build --tag ${IMAGE_NAME} . | |
- name: dockle | |
run: | | |
docker run -v /var/run/docker.sock:/var/run/docker.sock --rm goodwithtech/dockle:latest -ak KEY_SHA512 --exit-code 1 --exit-level fatal ${IMAGE_NAME} | |
- name: run container locally as a test | |
run: | | |
docker run -d -p 8080:8080 --read-only --cap-drop=ALL --user=1000 ${IMAGE_NAME} | |
chart: | |
needs: container | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: helm lint | |
run: | | |
helm lint chart/ --strict | |
helm template chart/ > helm-output.yaml | |
kustomize create --resources helm-output.yaml | |
kustomize build . |