sharmayajush is learning GitHub Actions #6
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: learn-github-actions | |
run-name: ${{ github.actor }} is learning GitHub Actions | |
on: [push] | |
jobs: | |
check-working: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Checkout kubearmor repo | |
uses: actions/checkout@v3 | |
with: | |
repository: kubearmor/KubeArmor | |
ref: main | |
path: Kubearmor | |
- name: Setup a Kubernetes environment | |
run: | | |
./Kubearmor/contribution/k3s/install_k3s.sh | |
sudo apt install socat | |
- name: accuknox-install | |
id: install-accuknox | |
uses: accuknox/[email protected] | |
- name: Run accuknox-report | |
id: report-accuknox | |
if: steps.install-accuknox.outputs.status == 'success' | |
uses: accuknox/[email protected] | |