chore: add sonarcloud job, codeowners and security.md #72
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: lint | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
concurrency: | |
group: lint-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
starklark: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install kurtosis | |
run: | | |
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list | |
sudo apt update | |
sudo apt install kurtosis-cli | |
kurtosis analytics disable | |
- name: Run kurtosis linter | |
run: kurtosis lint ${{ github.workspace }} | |
yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install yamllint | |
run: pip install yamllint | |
- name: Run yamllint | |
run: yamllint --config-file .yamllint.yml . | |
hadolint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install hadolint | |
run: | | |
sudo wget -O /usr/local/bin/hadolint https://github.com/hadolint/hadolint/releases/latest/download/hadolint-Linux-x86_64 | |
sudo chmod +x /usr/local/bin/hadolint | |
- name: Run hadolint | |
run: find . -type f -name 'Dockerfile*' | sort | xargs -I {} hadolint --config .hadolint.yml {} | |
shellcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install shellcheck | |
run: sudo apt install shellcheck | |
- name: Run shellcheck | |
run: find . -type f -name '*.sh' | sort | xargs -I {} shellcheck {} |