From 019c249ea7a8caeb3925ed8a13ced4758444639f Mon Sep 17 00:00:00 2001 From: Maxim Muzafarov Date: Fri, 19 Apr 2024 13:34:50 +0100 Subject: [PATCH 1/2] update secret usage --- .github/workflows/go.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8a39a18..eca11c1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -36,7 +36,9 @@ jobs: run: ./ip2geo -version - name: Download MaxMind - run: wget --quiet -O maxmind.zip 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&suffix=zip&license_key=${{ secrets.MAXMIND_LICENSE_KEY }}' + env: + MAXMIND_LICENSE_KEY: ${{ secrets.MAXMIND_LICENSE_KEY }} + run: wget --quiet -O maxmind.zip 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&suffix=zip&license_key=$MAXMIND_LICENSE_KEY' - name: Test maxmind run: | From 5f0b238cfafce82cdc3768bd94fa05213be02ca2 Mon Sep 17 00:00:00 2001 From: Maxim Muzafarov Date: Fri, 19 Apr 2024 13:43:03 +0100 Subject: [PATCH 2/2] Update go.yml --- .github/workflows/go.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index eca11c1..4e216ab 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -38,7 +38,7 @@ jobs: - name: Download MaxMind env: MAXMIND_LICENSE_KEY: ${{ secrets.MAXMIND_LICENSE_KEY }} - run: wget --quiet -O maxmind.zip 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&suffix=zip&license_key=$MAXMIND_LICENSE_KEY' + run: wget -O maxmind.zip 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&suffix=zip&license_key='$MAXMIND_LICENSE_KEY - name: Test maxmind run: |