Skip to content

Commit b311e73

Browse files
committed
fixed missing required permission and wrong condition
1 parent 504ed8b commit b311e73

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/ci-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ jobs:
385385
env:
386386
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
387387
- name: Upload test results to Codecov
388-
if: ${{ secrets.CODECOV_TOKEN }} != '' && github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository == 'argoproj/argo-cd'
388+
if: false && github.ref == 'refs/heads/master' && github.event_name == 'push' && github.repository == 'argoproj/argo-cd'
389389
uses: codecov/test-results-action@9739113ad922ea0a9abb4b2c0f8bf6a4aa8ef820 # v1.0.1
390390
with:
391391
file: test-results/junit.xml

.github/workflows/image.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,12 @@ jobs:
6969
needs: [set-vars]
7070
permissions:
7171
contents: read
72-
# packages: write # for pushing packages to GHCR, which is used by cd.apps.argoproj.io to avoid polluting Quay with tags
72+
packages: write # for pushing packages to GHCR, which is used by cd.apps.argoproj.io to avoid polluting Quay with tags
7373
id-token: write # for creating OIDC tokens for signing.
7474
if: ${{ github.repository == 'codefresh-io/argo-cd' }}
7575
uses: ./.github/workflows/image-reuse.yaml
7676
with:
77-
# quay_image_name: ${{ github.event_name == 'pull_request' && 'quay.io/codefresh/dev/argocd' || 'quay.io/codefresh/argocd' }}:${{ needs.set-vars.outputs.image-tag }}
78-
quay_image_name: quay.io/codefresh/argocd:${{ needs.set-vars.outputs.image-tag }}
77+
quay_image_name: ${{ github.event_name == 'pull_request' && 'quay.io/codefresh/dev/argocd' || 'quay.io/codefresh/argocd' }}:${{ needs.set-vars.outputs.image-tag }}
7978
# ghcr_image_name: ghcr.io/codefresh-io/argo-cd/argocd:${{ needs.set-vars.outputs.image-tag }}
8079
# Note: cannot use env variables to set go-version (https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations)
8180
# renovate: datasource=golang-version packageName=golang

0 commit comments

Comments
 (0)