Skip to content

Commit

Permalink
Merge pull request #1945 from fridex/refresh-scorecards
Browse files Browse the repository at this point in the history
Run prescriptions-refresh-job for Security Scorecards
  • Loading branch information
sesheta authored Oct 11, 2021
2 parents f0938aa + 815cca2 commit 64eabbf
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
---
apiVersion: argoproj.io/v1alpha1
kind: WorkflowTemplate
metadata:
name: prescriptions-refresh-scorecards
spec:
templates:
- name: scorecards
resubmitPendingPods: true
container:
name: scorecards
image: prescriptions-refresh-job
env:
- name: SENTRY_DSN
valueFrom:
secretKeyRef:
name: thoth
key: sentry-dsn
- name: GIT_SSH_COMMAND
# Needed to keep weak host verification for git clone.
value: "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
- name: THOTH_DEPLOYMENT_NAME
valueFrom:
configMapKeyRef:
name: thoth
key: deployment-name
- name: APP_SCRIPT
value: app.sh
- name: THOTH_PRESCRIPTIONS_REFRESH_RANDOMIZE
value: "1"
- name: THOTH_PRESCRIPTIONS_REFRESH_SUBCOMMAND
value: scorecards
- name: GITHUB_PRIVATE_KEY_PATH
value: /opt/app-root/src/.github/github-privatekey
- name: THOTH_LOGGING_NO_JSON
valueFrom:
configMapKeyRef:
name: thoth
key: logging-no-json
- name: THOTH_PRESCRIPTIONS_REFRESH_GITHUB_TOKEN
valueFrom:
secretKeyRef:
name: kebechet
key: github-oauth-token
- name: GITHUB_APP_ID
valueFrom:
secretKeyRef:
name: kebechet
key: GITHUB_APP_ID
- name: THOTH_PRESCRIPTIONS_REFRESH_GITHUB_LABELS
value: bot
- name: THOTH_PRESCRIPTIONS_REFRESH_REPO
value: [email protected]:thoth-station/prescriptions.git
- name: THOTH_PRESCRIPTIONS_REFRESH_DEBUG
value: "1"
- name: PROMETHEUS_PUSHGATEWAY_HOST
valueFrom:
configMapKeyRef:
key: pushgateway-host
name: prometheus
- name: PROMETHEUS_PUSHGATEWAY_PORT
valueFrom:
configMapKeyRef:
key: pushgateway-port
name: prometheus
resources:
limits:
cpu: 250m
memory: 256Mi
requests:
cpu: 250m
memory: 256Mi
volumeMounts:
- name: ssh-config
mountPath: /opt/app-root/src/.ssh
- name: github-app-privatekey
mountPath: /opt/app-root/src/.github/
readOnly: true
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ spec:
template: gh-release-notes
continueOn:
failed: true
- name: scorecards
templateRef:
name: prescriptions-refresh-scorecards
template: scorecards
continueOn:
failed: true
1 change: 1 addition & 0 deletions prescriptions-refresh-job/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ commonLabels:
app.kubernetes.io/managed-by: aicoe-thoth-devops
resources:
- argo-workflows/prescriptions-refresh-gh.yaml
- argo-workflows/prescriptions-refresh-scorecards.yaml
- argo-workflows/prescriptions-refresh.yaml
- imagestream.yaml

0 comments on commit 64eabbf

Please sign in to comment.