Skip to content

Commit

Permalink
Merge pull request #140 from anchore/fix-missing-github-token
Browse files Browse the repository at this point in the history
Don't use unset ENV vars in config file
  • Loading branch information
Btodhunter authored Apr 28, 2021
2 parents 277717b + 9010b3e commit d37a441
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion stable/anchore-engine/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: anchore-engine
version: 1.12.11
version: 1.12.12
appVersion: 0.9.3
description: Anchore container analysis and policy evaluation engine service
keywords:
Expand Down
6 changes: 3 additions & 3 deletions stable/anchore-engine/templates/engine_configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ data:
# If enabled only sync specific feeds instead of all that are found.
enabled: true
feeds:
{{- if not .Values.anchoreEnterpriseGlobal.enabled }}
{{- if .Values.anchoreEnterpriseGlobal.enabled }}
github: {{ .Values.anchoreEnterpriseFeeds.githubDriverEnabled }}
{{- else }}
github: {{ default "true" .Values.anchoreGlobal.syncGithub }}
{{- end }}
# Vulnerabilities feed is the feed for distro cve sources (redhat, debian, ubuntu, oracle, alpine....)
Expand All @@ -70,8 +72,6 @@ data:
vulndb: false
microsoft: false
{{- end }}
# Sync github data if available for GHSA matches
github: {{ default "true" .Values.anchoreGlobal.syncGithub }}
{{- if .Values.anchoreEnterpriseFeeds.url }}
url: "{{- .Values.anchoreEnterpriseFeeds.url }}"
ssl_verify: {{ .Values.anchoreGlobal.internalServicesSsl.verifyCerts }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,20 @@ data:
enabled: {{ default "true" .Values.anchoreEnterpriseFeeds.nvdv2DriverEnabled }}
vulndb:
enabled: {{ default "true" .Values.anchoreEnterpriseFeeds.vulndbDriverEnabled }}
{{- if .Values.anchoreEnterpriseFeeds.msrcDriverEnabled }}
msrc:
enabled: {{ .Values.anchoreEnterpriseFeeds.msrcDriverEnabled }}
enabled: true
api_key: ${ANCHORE_MSRC_KEY}
{{- with .Values.anchoreEnterpriseFeeds.msrcWhitelist }}
whitelist:
- {{ . }}
{{- end }}
{{- end }}
{{- if .Values.anchoreEnterpriseFeeds.githubDriverEnabled }}
github:
enabled: {{ .Values.anchoreEnterpriseFeeds.githubDriverEnabled }}
enabled: true
token: ${ANCHORE_GITHUB_TOKEN}
{{- end }}
{{- if .Values.anchoreGlobal.internalServicesSsl.enabled }}
ssl_enable: {{ .Values.anchoreGlobal.internalServicesSsl.enabled }}
ssl_cert: "/home/anchore/certs/{{- .Values.anchoreGlobal.internalServicesSsl.certSecretCertName }}"
Expand Down

0 comments on commit d37a441

Please sign in to comment.