From 2d96c9943bfdfd0cc45b4630303ca59572796750 Mon Sep 17 00:00:00 2001 From: fan9704 Date: Sat, 9 Sep 2023 00:01:51 +0800 Subject: [PATCH] fix: CI repo secrete > env --- .github/workflows/django-test.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/django-test.yaml b/.github/workflows/django-test.yaml index 4eb7ba4..13caa02 100644 --- a/.github/workflows/django-test.yaml +++ b/.github/workflows/django-test.yaml @@ -23,7 +23,7 @@ jobs: - name: Create env file run: | - echo "${{ secrets.ENV_FILE }}" > .env + echo "${{ env.ENV_FILE }}" > .env source .env - name: Docker Compose Action @@ -68,8 +68,8 @@ jobs: - name: Sonarqube Scanning uses: sonarsource/sonarqube-scan-action@master env: - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + SONAR_TOKEN: ${{ env.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ env.SONAR_HOST_URL }} EXTRA_ARGS: -Dsonar.coverageReportPaths=coverage.xml # - name: DockerHub Login # uses: docker/login-action@v2.1.0