Potential fix for code scanning alert no. 5: Workflow does not contai… #158
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
| on: | |
| push: | |
| name: Test Workflow | |
| permissions: | |
| contents: read | |
| jobs: | |
| dvc-code-usages: | |
| runs-on: ubuntu-latest | |
| name: Update code usages | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.ref }} | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4.3.0 | |
| with: | |
| node-version: '20' | |
| - name: Setup Yarn | |
| run: | | |
| corepack enable | |
| corepack prepare yarn@4.2.1 --activate | |
| - name: Install | |
| run: yarn install | |
| - name: Build | |
| run: yarn build | |
| - uses: ./ | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| client-id: ${{ secrets.DVC_CLIENT_ID }} | |
| client-secret: ${{ secrets.DVC_CLIENT_SECRET }} | |
| project-key: git-hub-actions-integration-tests |