diff --git a/.gitea/workflows/check-license.yml b/.gitea/workflows/check-license.yml index 2967bea..3d03460 100644 --- a/.gitea/workflows/check-license.yml +++ b/.gitea/workflows/check-license.yml @@ -21,13 +21,13 @@ jobs: - run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}" - run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}" - name: Check out repository code - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4 + uses: https://${{ secrets.CI_USER }}:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4 with: fetch-depth: 0 persist-credentials: false - name: Get all files that have changed id: changed-files-specific - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-tj-actions-changed-files.git@v44 + uses: https://${{ secrets.CI_USER }}:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-tj-actions-changed-files.git@v44 with: files: | **/*.c @@ -49,7 +49,7 @@ jobs: - name: Check license for changed files id: check_license if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v10 + uses: https://${{ secrets.CI_USER }}:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v10 with: input_files: ${{ steps.changed-files-specific.outputs.all_changed_files }} exclude_pattern: diff --git a/README.md b/README.md index 74fe289..5658aff 100644 --- a/README.md +++ b/README.md @@ -22,12 +22,12 @@ jobs: - run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}" - run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}" - name: Check out repository code - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4 + uses: https://${{ secrets.CI_USER }}:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4 with: fetch-depth: 0 # for work tj-actions/changed-files persist-credentials: false # for work tj-actions/changed-files - name: Check license - uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1 + uses: https://${{ secrets.CI_USER }}:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/addlicense-docker-action.git@v1 with: exclude_pattern: -ignore "**/*.go" -ignore "vendor/**" ```