|
5 | 5 | types: [opened, synchronize, reopened] |
6 | 6 | paths: ['scanners/**'] |
7 | 7 |
|
| 8 | +permissions: |
| 9 | + id-token: write # Required for OIDC |
| 10 | + |
8 | 11 | jobs: |
| 12 | + azure-devops-pipelines: |
| 13 | + name: Azure DevOps Pipelines |
| 14 | + runs-on: ubuntu-latest |
| 15 | + steps: |
| 16 | + - name: Azure Login (OIDC) |
| 17 | + uses: azure/login@v2 |
| 18 | + with: |
| 19 | + client-id: ${{ secrets.BOOST_SCAN_RUNNER_ADO_CLIENT_ID }} |
| 20 | + tenant-id: ${{ secrets.BOOST_SCAN_RUNNER_ADO_TENANT_ID }} |
| 21 | + allow-no-subscriptions: true |
| 22 | + - name: Get Azure DevOps Token |
| 23 | + id: azure-token |
| 24 | + run: | |
| 25 | + token=$(az account get-access-token \ |
| 26 | + --resource 499b84ac-1321-427f-aa17-267ca6975798 \ |
| 27 | + --query accessToken -o tsv) |
| 28 | + echo "token=$token" >> $GITHUB_OUTPUT |
| 29 | + echo "::add-mask::$token" |
| 30 | + - name: Checkout scanner registry |
| 31 | + uses: actions/checkout@v4 |
| 32 | + with: |
| 33 | + fetch-depth: 0 # Need full history to detect changes |
| 34 | + - name: Run Tests |
| 35 | + uses: boostsecurityio/scan-test-action@2a784e92451e9ba1561ca749ba630b7621adfcbf |
| 36 | + with: |
| 37 | + provider: azure-devops |
| 38 | + provider-config: | |
| 39 | + { |
| 40 | + "token": "${{ steps.azure-token.outputs.token }}", |
| 41 | + "organization": "BoostSecurity", |
| 42 | + "project": "cicd-tools", |
| 43 | + "pipeline_id": 1 |
| 44 | + } |
| 45 | + registry-repo: "${{ github.repository_owner }}/${{ github.event.repository.name }}" |
| 46 | + base-ref: "${{ github.base_ref }}" |
9 | 47 | bitbucket-action: |
10 | 48 | name: Bitbucket Pipelines |
11 | 49 | runs-on: ubuntu-latest |
|
26 | 64 | with: |
27 | 65 | fetch-depth: 0 # Need full history to detect changes |
28 | 66 | - name: Run Tests |
29 | | - uses: boostsecurityio/scan-test-action@53e2f687ab93ac5d150b88abd7341b72f6fbf384 |
| 67 | + uses: boostsecurityio/scan-test-action@2a784e92451e9ba1561ca749ba630b7621adfcbf |
30 | 68 | with: |
31 | 69 | provider: bitbucket |
32 | 70 | provider-config: | |
|
55 | 93 | with: |
56 | 94 | fetch-depth: 0 # Need full history to detect changes |
57 | 95 | - name: Run Tests |
58 | | - uses: boostsecurityio/scan-test-action@53e2f687ab93ac5d150b88abd7341b72f6fbf384 |
| 96 | + uses: boostsecurityio/scan-test-action@2a784e92451e9ba1561ca749ba630b7621adfcbf |
59 | 97 | with: |
60 | 98 | provider: github-actions |
61 | 99 | provider-config: | |
|
77 | 115 | with: |
78 | 116 | fetch-depth: 0 # Need full history to detect changes |
79 | 117 | - name: Run Tests |
80 | | - uses: boostsecurityio/scan-test-action@53e2f687ab93ac5d150b88abd7341b72f6fbf384 |
| 118 | + uses: boostsecurityio/scan-test-action@2a784e92451e9ba1561ca749ba630b7621adfcbf |
81 | 119 | with: |
82 | 120 | provider: gitlab-ci |
83 | 121 | provider-config: | |
|
0 commit comments