Add /v2/user-from-token API and update a few v1/v2 APIs to require bearer token and check for auth user #1353
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
| --- | |
| # Copyright The Linux Foundation and each contributor to CommunityBridge. | |
| # SPDX-License-Identifier: MIT | |
| name: Yarn Golang Backend Dependency Audit | |
| on: | |
| # https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions | |
| pull_request: | |
| branches: | |
| - dev | |
| jobs: | |
| yarn-scan-backend-go-pr: | |
| runs-on: ubuntu-latest | |
| environment: dev | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Setup | |
| run: yarn install | |
| - name: Yarn Audit | |
| working-directory: cla-backend-go | |
| run: | | |
| yarn audit |