Update Helm release gateway to v1.24.0 #10243
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: main | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }} | |
jobs: | |
env: | |
uses: devxp-tech/.github/.github/workflows/env.yaml@main | |
yaml-linter: | |
name: Yaml Linter π§Ή | |
runs-on: ubuntu-latest | |
needs: | |
- env | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Yaml Lint | |
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3 | |
with: | |
no_warnings: true | |
kube-linter: | |
name: Kube Linter π§Ή | |
runs-on: ubuntu-latest | |
needs: | |
- env | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Scan repo | |
id: kube-lint-repo | |
uses: stackrox/kube-linter-action@5792edc6a03735d592b13c08201711327a935735 # v1.0.5 | |
with: | |
directory: apps | |
format: sarif | |
output-file: kube-linter.sarif | |
continue-on-error: true | |
secret-find: | |
name: Secrets Find π | |
runs-on: ubuntu-latest | |
needs: | |
- env | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Find Secrets π | |
shell: bash | |
run: | | |
if find apps/ -name '*.yaml' | xargs grep -q "kind: Secret"; then | |
echo "Fail, secret found! :(" | |
exit 1 | |
else | |
echo "Success, secret not found! :)" | |
exit 0 | |
fi | |
# datree-check: | |
# name: Datree Check π | |
# runs-on: ubuntu-latest | |
# needs: | |
# - env | |
# steps: | |
# - name: Checkout ποΈ | |
# uses: actions/checkout@v3 | |
# - name: Run Datree Policy Check | |
# uses: datreeio/action-datree@main | |
# with: | |
# path: 'apps/*/base/*.yaml' | |
# cliArguments: '--only-k8s-files --ignore-missing-schemas' | |
trivy-scan: | |
name: Trivy Vulnerability Scanner π | |
needs: | |
- env | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code ποΈ | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: Run Trivy vulnerability scanner in IaC mode π | |
uses: aquasecurity/trivy-action@master | |
with: | |
scan-type: 'config' | |
hide-progress: false | |
format: 'sarif' | |
output: 'trivy-results.sarif' | |
exit-code: '0' | |
ignore-unfixed: true | |
severity: 'CRITICAL,HIGH' | |
- name: Upload Trivy scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@4fa2a7953630fd2f3fb380f21be14ede0169dd4f # v3 | |
if: always() | |
with: | |
sarif_file: 'trivy-results.sarif' | |
# quality-gate: | |
# uses: devxp-tech/.github/.github/workflows/sonarqube.yaml@main | |
# secrets: inherit | |
# needs: | |
# - env | |
# - yaml-linter | |
# - kube-linter | |
# - secret-find | |
# # - datree-check | |
# - trivy-scan | |
tools-version: | |
name: Update TOOLING.md π | |
runs-on: ubuntu-latest | |
needs: | |
- env | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install yq | |
run: | | |
sudo add-apt-repository -y ppa:rmescandon/yq | |
sudo apt-get update | |
sudo apt-get install -y yq | |
- name: Find and Process kustomization.yaml Files | |
run: bash .github/version.sh | |
- name: Commit and Push Changes π | |
run: | | |
if [[ $(git diff) ]]; | |
then | |
git config --global user.name 'github-actions[bot]' | |
git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
git add docs/tooling/versions.md | |
git commit -m "[ci skip] :robot: [github actions actor] - update versions.md" | |
git push | |
else | |
echo "nothing to do!!!" | |
fi | |
notify: | |
uses: devxp-tech/.github/.github/workflows/notify.yaml@main | |
if: always() | |
secrets: inherit | |
needs: | |
- env | |
- yaml-linter | |
- kube-linter | |
- secret-find | |
# - datree-check | |
# - quality-gate | |
- tools-version | |
- trivy-scan |