Add authenticator for FlowStreamService to extract user identity from grpc connection #35387
Workflow file for this run
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: Golicense | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - release-* | |
| - feature/* | |
| push: | |
| branches: | |
| - main | |
| - release-* | |
| - feature/* | |
| release: | |
| types: [published] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| check-changes: | |
| name: Check whether tests need to be run based on diff | |
| runs-on: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| show-progress: false | |
| - uses: antrea-io/has-changes@v2 | |
| id: check_diff | |
| with: | |
| paths-ignore: docs/* ci/jenkins/* *.md hack/.notableofcontents | |
| outputs: | |
| has_changes: ${{ steps.check_diff.outputs.has_changes }} | |
| golicense: | |
| needs: check-changes | |
| if: ${{ needs.check-changes.outputs.has_changes == 'yes' || github.event_name != 'pull_request' }} | |
| runs-on: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| show-progress: false | |
| - name: Set up Go using version from .go-version | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: '.go-version' | |
| - name: Cache licensing information for dependencies | |
| uses: actions/cache@v6 | |
| id: cache | |
| env: | |
| cache-name: cache-lichen-deps-licensing-info | |
| with: | |
| path: license-reports | |
| key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum', 'ci/golicense/**') }} | |
| - run: mkdir antrea-bins | |
| - name: Build assets | |
| run: | | |
| export VERSION="$(head VERSION)" | |
| ./hack/release/prepare-assets.sh ./antrea-bins | |
| - name: Build Linux binaries | |
| run: BINDIR=./antrea-bins make bin | |
| - name: Run lichen | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| mkdir license-reports | |
| ./ci/golicense/run.sh ./antrea-bins ./license-reports | |
| - name: Upload licensing information | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: licenses.deps | |
| path: license-reports/ALL.deps.txt | |
| retention-days: 90 # max value |