Skip to content

Commit

Permalink
Merge pull request #67 from stefannica/use-trivy-github-token
Browse files Browse the repository at this point in the history
CI workflows: use github token for trivy
  • Loading branch information
stefannica committed Oct 2, 2020
2 parents d0de41a + e145212 commit 67bd385
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/periodic-20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,15 @@ jobs:
- name: Generate helm values file for CI
run: |
cat << EOF | tee ${NAMESPACE}.yaml
suse:
AcceptBetaEULA: "yes"
expose:
ingress:
hosts:
core: "${NAMESPACE}.${INGRESS_IP}.nip.io"
externalURL: "https://${NAMESPACE}.${INGRESS_IP}.nip.io"
trivy:
gitHubToken: "${{ secrets.GITHUB_TOKEN }}"
updateStrategy:
type: Recreate
internalTLS:
Expand All @@ -100,7 +104,7 @@ jobs:
helm chart export ${{ matrix.install_src }}/charts/${{ matrix.install_src_suffix }}
# replace images repository according to source
sed -i 's,registry.suse.com,${{ matrix.install_src }}/containers,g' ${chart}/values.yaml
helm install ${NAMESPACE} ${chart} -n ${NAMESPACE} --values ${NAMESPACE}.yaml --timeout 8m --wait --set suse.AcceptBetaEULA=yes
helm install ${NAMESPACE} ${chart} -n ${NAMESPACE} --values ${NAMESPACE}.yaml --timeout 8m --wait
- name: SUSE Private Registry (upgrade)
if: matrix.upgrade_src
env:
Expand All @@ -112,7 +116,7 @@ jobs:
helm chart export ${{ matrix.upgrade_src }}/charts/${{ matrix.upgrade_src_suffix }}
# replace images repository according to source
sed -i 's,registry.suse.com,${{ matrix.upgrade_src }}/containers,g' ${chart}/values.yaml
helm upgrade ${NAMESPACE} ${chart} -n ${NAMESPACE} --values ${NAMESPACE}.yaml --timeout 8m --wait --set suse.AcceptBetaEULA=yes
helm upgrade ${NAMESPACE} ${chart} -n ${NAMESPACE} --values ${NAMESPACE}.yaml --timeout 8m --wait
- name: Run tests
id: run_tests
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/periodic-21.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ jobs:
hosts:
core: "${NAMESPACE}.${INGRESS_IP}.nip.io"
externalURL: "https://${NAMESPACE}.${INGRESS_IP}.nip.io"
trivy:
gitHubToken: "${{ secrets.GITHUB_TOKEN }}"
updateStrategy:
type: Recreate
internalTLS:
Expand Down

0 comments on commit 67bd385

Please sign in to comment.