diff --git a/.github/workflows/ci-dotnet-fast.yml b/.github/workflows/ci-dotnet-fast.yml index 1b1a4dd..865d8c8 100644 --- a/.github/workflows/ci-dotnet-fast.yml +++ b/.github/workflows/ci-dotnet-fast.yml @@ -16,6 +16,9 @@ on: solution: required: true type: string + secrets: + FETCH_TOKEN: + required: false concurrency: group: ${{ github.workflow_ref}}@${{ github.ref }} @@ -37,6 +40,7 @@ jobs: with: fetch-depth: 0 submodules: recursive + token: ${{ secrets.FETCH_TOKEN || github.token }} - name: Setup .NET uses: actions/setup-dotnet@v4 @@ -67,5 +71,4 @@ jobs: if: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' }} uses: ./.github/workflows/step-dependabot-merge.yml needs: - - build-and-test - secrets: inherit \ No newline at end of file + - build-and-test \ No newline at end of file diff --git a/.github/workflows/cicd-dotnet.yml b/.github/workflows/cicd-dotnet.yml index 11eb340..a06be45 100644 --- a/.github/workflows/cicd-dotnet.yml +++ b/.github/workflows/cicd-dotnet.yml @@ -48,6 +48,9 @@ on: solution: required: true type: string + secrets: + FETCH_TOKEN: + required: false concurrency: group: ${{ github.workflow_ref }}@${{ github.ref }} @@ -65,6 +68,7 @@ jobs: with: dotnet-version: ${{ inputs.dotnet-version || '8.x' }} dotnet-quality: ${{ inputs.dotnet-quality || 'ga' }} + secrets: inherit format: name: Format @@ -76,6 +80,7 @@ jobs: dotnet-quality: ${{ inputs.dotnet-quality || 'ga' }} runs-on: ${{ inputs.runs-on-build || 'ubuntu-latest' }} solution: ${{ inputs.solution }} + secrets: inherit codeql: name: CodeQL @@ -87,6 +92,7 @@ jobs: dotnet-quality: ${{ inputs.dotnet-quality || 'ga' }} runs-on: ${{ inputs.runs-on-build || 'ubuntu-latest' }} solution: ${{ inputs.solution }} + secrets: inherit tests: name: Tests @@ -148,4 +154,4 @@ jobs: with: runs-on: ${{ inputs.runs-on-tests || 'ubuntu-latest' }} solution-version: ${{ needs.version.outputs.solution-version }} - + secrets: inherit diff --git a/.github/workflows/step-dotnet-build.yml b/.github/workflows/step-dotnet-build.yml index d27af11..7af0bdb 100644 --- a/.github/workflows/step-dotnet-build.yml +++ b/.github/workflows/step-dotnet-build.yml @@ -20,6 +20,9 @@ on: solution: required: true type: string + secrets: + FETCH_TOKEN: + required: false jobs: build: @@ -32,6 +35,7 @@ jobs: with: fetch-depth: 0 submodules: recursive + token: ${{ secrets.FETCH_TOKEN || github.token }} - name: Setup .NET uses: actions/setup-dotnet@v4 diff --git a/.github/workflows/step-dotnet-codeql.yml b/.github/workflows/step-dotnet-codeql.yml index 7363104..b7dc37a 100644 --- a/.github/workflows/step-dotnet-codeql.yml +++ b/.github/workflows/step-dotnet-codeql.yml @@ -20,6 +20,9 @@ on: solution: required: true type: string + secrets: + FETCH_TOKEN: + required: false defaults: run: @@ -40,6 +43,7 @@ jobs: with: fetch-depth: 0 submodules: recursive + token: ${{ secrets.FETCH_TOKEN || github.token }} - name: Install .NET ${{ inputs.dotnet-version }} uses: actions/setup-dotnet@v4 diff --git a/.github/workflows/step-dotnet-draft-release.yml b/.github/workflows/step-dotnet-draft-release.yml index 94f7c86..96c4519 100644 --- a/.github/workflows/step-dotnet-draft-release.yml +++ b/.github/workflows/step-dotnet-draft-release.yml @@ -8,6 +8,9 @@ on: solution-version: required: true type: string + secrets: + FETCH_TOKEN: + required: false jobs: draft-release: @@ -21,6 +24,7 @@ jobs: with: fetch-depth: 0 submodules: recursive + token: ${{ secrets.FETCH_TOKEN || github.token }} - name: Release Drafter uses: release-drafter/release-drafter@v6.0.0 diff --git a/.github/workflows/step-dotnet-format.yml b/.github/workflows/step-dotnet-format.yml index d9aee05..72ebb34 100644 --- a/.github/workflows/step-dotnet-format.yml +++ b/.github/workflows/step-dotnet-format.yml @@ -20,6 +20,9 @@ on: solution: required: true type: string + secrets: + FETCH_TOKEN: + required: false defaults: run: @@ -36,6 +39,7 @@ jobs: with: fetch-depth: 0 submodules: recursive + token: ${{ secrets.FETCH_TOKEN || github.token }} - name: Setup .NET uses: actions/setup-dotnet@v4 diff --git a/.github/workflows/step-dotnet-tests.yml b/.github/workflows/step-dotnet-tests.yml index c50862e..01a1775 100644 --- a/.github/workflows/step-dotnet-tests.yml +++ b/.github/workflows/step-dotnet-tests.yml @@ -44,6 +44,8 @@ on: required: false SONAR_TOKEN: required: false + FETCH_TOKEN: + required: false jobs: pretest: @@ -75,6 +77,7 @@ jobs: with: fetch-depth: 0 submodules: recursive + token: ${{ secrets.FETCH_TOKEN || github.token }} - name: Setup .NET uses: actions/setup-dotnet@v4 diff --git a/.github/workflows/step-dotnet-version.yml b/.github/workflows/step-dotnet-version.yml index 2069a23..4680795 100644 --- a/.github/workflows/step-dotnet-version.yml +++ b/.github/workflows/step-dotnet-version.yml @@ -13,6 +13,9 @@ on: required: false type: string default: ubuntu-latest + secrets: + FETCH_TOKEN: + required: false outputs: solution-version: description: 'The FullSemVer version' @@ -32,6 +35,7 @@ jobs: with: fetch-depth: 0 submodules: recursive + token: ${{ secrets.FETCH_TOKEN || github.token }} - name: Setup .NET uses: actions/setup-dotnet@v4