Revert DECO_GITHUB_TOKEN usage #5
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: scan-snapshot | |
| on: | |
| push: | |
| branches: | |
| - "eval-*" | |
| workflow_dispatch: | |
| jobs: | |
| download: | |
| runs-on: | |
| group: databricks-deco-testing-runner-group | |
| labels: ubuntu-latest-deco | |
| steps: | |
| - name: Download snapshot release assets | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh release download snapshot --repo ${{ github.repository }} --pattern '*.tar.gz' --dir dist | |
| - name: Upload macOS binaries | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: cli_darwin_snapshot | |
| path: dist/*darwin* | |
| - name: Upload Linux binaries | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: cli_linux_snapshot | |
| path: dist/*linux* | |
| - name: Upload Windows binaries | |
| uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: cli_windows_snapshot | |
| path: dist/*windows* | |
| scan: | |
| needs: download | |
| runs-on: | |
| group: databricks-deco-testing-runner-group | |
| labels: ubuntu-latest-deco | |
| strategy: | |
| matrix: | |
| artifact: | |
| - cli_darwin_snapshot | |
| - cli_linux_snapshot | |
| - cli_windows_snapshot | |
| steps: | |
| - name: Checkout scan action | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| repository: databricks/gh-action-scan | |
| ref: 3599451f16bfeaecaf4fc7dc0853bcd6d89e9ea1 | |
| path: .gh-action-scan | |
| - name: Scan artifact | |
| uses: ./.gh-action-scan | |
| with: | |
| download-artifact: ${{ matrix.artifact }} | |
| artifact-name: ${{ matrix.artifact }} |