Skip to content

Commit

Permalink
ci: make Github mask all image repository-related values in the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-vtimofeenko committed Jan 26, 2024
1 parent a5e3365 commit d4e3e31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-and-push-dockerfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Mask repo-related values in Github logs
run: |
IFS='/' read -ra URL_PARTS <<< "${{ secrets.REGISTRY_URL }}"
for i in "${URL_PARTS[@]}"; do
echo "::add-mask::$i"
done
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Snowflake image registry
Expand Down

0 comments on commit d4e3e31

Please sign in to comment.