Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing GHA #354

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/fossa.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: Run Fossa Scan

on:
push:
branches:
- "v1.*"
tags:
- '*'
tags:
- '*'
# push:
# branches:
# - "*"

jobs:
fossa:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # needed for the Vault authentication
continue-on-error: true
steps:
- name: Load Secrets from Vault
uses: rancher-eio/read-vault-secrets@main
Expand Down
22 changes: 0 additions & 22 deletions .github/workflows/pull_request.yaml

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/test-prepare-binaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test Prepare Binaries

on:
push:
branches:
- "gha-*" # for testing
pull_request:

jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [ amd64, arm64 ]
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Environment Variables
run: |
echo ARCH=${{ matrix.arch }}
echo ARCH=${{ matrix.arch }} >> $GITHUB_ENV
if [[ "${{ github.ref_type }}" == "tag" ]]; then
echo K8S_VERSION=$( echo ${{ github.ref_name }} | tr -s " " | cut -d "-" -f1 )
echo K8S_VERSION=$( echo ${{ github.ref_name }} | tr -s " " | cut -d "-" -f1 ) >> $GITHUB_ENV
fi
- name: Prepare binaries
run: |
make k8s-binaries
28 changes: 28 additions & 0 deletions .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Run Trivy scan

on:
push:
tags:
- '*'
pull_request:


jobs:
trivy:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Get base image
run: |
image=$(grep hyperkube-base Dockerfile | awk '{ print $2 }')
echo "HYPERKUBE=${image}"
echo "HYPERKUBE=${image}" >> "$GITHUB_ENV"
- name: Run Trivy scanner
uses: aquasecurity/trivy-action@d710430a6722f083d3b36b8339ff66b32f22ee55 # v0.19.0
with:
image-ref: ${{ env.HYPERKUBE }}
exit-code: '1'
severity: 'CRITICAL,HIGH'