⭐ azure: roll out private endpoint connections, identity, and provenance #11389
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Extended Linting | |
| ## Only trigger tests if source is changing | |
| on: | |
| pull_request: | |
| paths: | |
| - "**.go" | |
| - "**.mod" | |
| - "go.sum" | |
| - ".github/workflows/pr-extended-linting.yml" | |
| - ".github/workflows/reusable-lint-providers.yml" | |
| concurrency: | |
| group: pr-extended-linting-${{ github.event.pull_request.number || github.ref }} | |
| # Unconditional: this workflow only triggers on pull_request, never on main. | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| detect-changed-providers: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| providers: ${{ steps.changed.outputs.providers }} | |
| all: ${{ steps.changed.outputs.all }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Determine changed providers | |
| id: changed | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| run: bash scripts/changed-providers.sh | |
| golangci-lint: | |
| permissions: | |
| # allow read access to the content for analysis. | |
| contents: read | |
| # allow read access to pull request. Use with `only-new-issues` option. | |
| pull-requests: read | |
| # allow write access to checks to allow the action to annotate code in the PR. | |
| checks: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Import environment variables from file | |
| run: cat ".github/env" >> $GITHUB_ENV | |
| - name: Install Go | |
| uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0 | |
| with: | |
| go-version: ">=${{ env.golang-version }}" | |
| check-latest: true | |
| cache: false | |
| - name: Generate test files | |
| run: make test/generate | |
| - name: Run golangci-lint | |
| uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1 | |
| with: | |
| version: v2.10.1 | |
| args: --config=.github/.golangci.yaml --timeout=30m | |
| only-new-issues: true | |
| skip-cache: true | |
| golangci-lint-providers: | |
| needs: detect-changed-providers | |
| uses: ./.github/workflows/reusable-lint-providers.yml | |
| with: | |
| only-new-issues: true | |
| providers: ${{ needs.detect-changed-providers.outputs.all == 'true' && '' || needs.detect-changed-providers.outputs.providers }} |