Skip to content

Commit

Permalink
[DT-1122] Apply zizmor suggestions (#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
fboulnois authored Jan 15, 2025
1 parent 6b8602e commit 7cbc06e
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/dev-image-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- 'Dockerfile'
- '.github/workflows/dev-image-update.yaml'
env:
gcr_google_project: 'broad-jade-dev'
GCR_GOOGLE_PROJECT: 'broad-jade-dev'
google_sdk_version: '290.0.1'
DEV_PROJECT: broad-jade-dev
# This must be defined for the bash redirection
Expand Down Expand Up @@ -69,21 +69,23 @@ jobs:
DISABLE_ESLINT_PLUGIN: true
run: |
rm -rf jade-dev-account.pem
docker build -t gcr.io/${{ env.gcr_google_project }}/jade-data-repo-ui:${GCR_TAG} --build-arg CACHEBUST=$(date +%s) .
docker build -t "gcr.io/${GCR_GOOGLE_PROJECT}/jade-data-repo-ui:${GCR_TAG}" --build-arg CACHEBUST=$(date +%s) .
# Push the Docker image to Google Container Registry
- name: Publish and tag new docker container to GCR
run: |
gcloud auth activate-service-account --key-file jade-dev-account.json
gcloud auth configure-docker --quiet
docker push gcr.io/${{ env.gcr_google_project }}/jade-data-repo-ui:${GCR_TAG}
docker push "gcr.io/${GCR_GOOGLE_PROJECT}/jade-data-repo-ui:${GCR_TAG}"
gcloud container images \
add-tag \
gcr.io/${{ env.gcr_google_project }}/jade-data-repo-ui:"${GCR_TAG}" \
gcr.io/${{ env.gcr_google_project }}/jade-data-repo-ui:"${{ steps.uiprevioustag.outputs.tag }}" --quiet
"gcr.io/${GCR_GOOGLE_PROJECT}/jade-data-repo-ui:${GCR_TAG}" \
"gcr.io/${GCR_GOOGLE_PROJECT}/jade-data-repo-ui:${PREV_TAG}" --quiet
gcloud container images \
add-tag \
gcr.io/${{ env.gcr_google_project }}/jade-data-repo-ui:"${GCR_TAG}" \
gcr.io/${{ env.gcr_google_project }}/jade-data-repo-ui:"${GCR_TAG}-develop" --quiet
"gcr.io/${GCR_GOOGLE_PROJECT}/jade-data-repo-ui:${GCR_TAG}" \
"gcr.io/${GCR_GOOGLE_PROJECT}/jade-data-repo-ui:${GCR_TAG}-develop" --quiet
env:
PREV_TAG: ${{ steps.uiprevioustag.outputs.tag }}
helm_tag_bump:
needs: update_image
uses: ./.github/workflows/helmtagbump.yaml
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/helmtagbump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
with:
fetch-depth: 0
ref: develop
persist-credentials: false
- name: 'Get Previous tag'
id: uiprevioustag
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: broadinstitute/dsp-appsec-trivy-action@v1

0 comments on commit 7cbc06e

Please sign in to comment.