Skip to content

Commit

Permalink
Merge pull request #26 from scoremedia/allow-fetch-from-jfrog-take-2
Browse files Browse the repository at this point in the history
SRE-8406: Have Pluto Github workflow grab dependencies from jfrog
  • Loading branch information
cttttt authored Feb 13, 2025
2 parents 2eefb12 + 30a321b commit 676e569
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/pluto-workflow-kustomize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:

jobs:
review-k8s-api:
runs-on: ubuntu-latest
runs-on: non-prod-scorebet-org-runner
steps:
- name: Check out repository code
uses: actions/checkout@v4
Expand All @@ -38,11 +38,21 @@ jobs:
run:
git fetch && git checkout origin/non-prod -- values
- name: Download Pluto
uses: FairwindsOps/pluto/[email protected]
shell: bash
run: |
image=us-docker.pkg.dev/fairwinds-ops/oss/pluto:v5
docker pull "$image"
docker cp "$(docker create --rm "$image"):/pluto" /tmp/pluto
sudo mv /tmp/pluto /usr/local/bin/pluto
- name: Install all-in-one Kubernetes tools in a package.
uses: yokawasa/[email protected]
with:
kubectl: '1.26.13'
- name: Auth with jfrog for deps
uses: scorebet/[email protected]
with:
artifact-type: "helm"
- name: Run Pluto to scan K8S Manifest and send a report to OpsLevel
shell: bash
env:
Expand All @@ -61,6 +71,7 @@ jobs:
# if an user wishes to customize a Helm chart to use
CHART_NAME=$([ -n "${{ inputs.chart_name }}" ] && echo "${{ inputs.chart_name }}" || echo "${{ inputs.service_name }}")
helm dependency build "charts/$CHART_NAME"
helm template "charts/$CHART_NAME" --values "${{ inputs.values_base }}" --values "${{ inputs.values_overlay }}" > "$MANIFEST_FILE"
fi
Expand Down

0 comments on commit 676e569

Please sign in to comment.