|
23 | 23 | workflow_dispatch: |
24 | 24 |
|
25 | 25 | jobs: |
26 | | - check-codeql: |
27 | | - name: Check CodeQL Analysis |
28 | | - runs-on: ubuntu-24.04 |
| 26 | + #check-codeql: |
| 27 | + # name: Check CodeQL Analysis |
| 28 | + # runs-on: ubuntu-24.04 |
29 | 29 | # Continue workflow even if this job fails due to inability to find and/or check CodeQL workflow |
30 | | - continue-on-error: true |
31 | | - steps: |
32 | | - - name: Checkout repository |
33 | | - |
34 | | - |
35 | | - - name: Set up GitHub CLI |
36 | | - run: sudo apt-get install gh |
37 | | - |
38 | | - - name: Authenticate GitHub CLI |
39 | | - env: |
40 | | - GH_PAT: ${{ secrets.GH_PAT }} |
41 | | - run: echo "${{ secrets.GH_PAT }}" | gh auth login --with-token |
42 | | - |
43 | | - - name: Check CodeQL Workflow |
44 | | - env: |
45 | | - GH_PAT: ${{ secrets.GH_PAT }} |
46 | | - run: | |
47 | | - gh run list --workflow "CodeQL" --json conclusion --jq '.[0].conclusion' > codeql_status.txt |
48 | | - CODEQL_STATUS=$(cat codeql_status.txt) |
49 | | - if [[ "$CODEQL_STATUS" != "success" ]]; then |
50 | | - echo "CodeQL Analysis did not succeed. Exiting..." |
51 | | - exit 1 |
52 | | - fi |
53 | | - rm codeql_status.txt |
| 30 | + # continue-on-error: true |
| 31 | + # steps: |
| 32 | + # - name: Checkout repository |
| 33 | + |
| 34 | + |
| 35 | + # - name: Set up GitHub CLI |
| 36 | + # run: sudo apt-get install gh |
| 37 | + |
| 38 | + # - name: Authenticate GitHub CLI |
| 39 | + # env: |
| 40 | + # GH_PAT: ${{ secrets.GH_PAT }} |
| 41 | + # run: echo "${{ secrets.GH_PAT }}" | gh auth login --with-token |
| 42 | + |
| 43 | + # - name: Check CodeQL Workflow |
| 44 | + # env: |
| 45 | + # GH_PAT: ${{ secrets.GH_PAT }} |
| 46 | + # run: | |
| 47 | + # gh run list --workflow "CodeQL" --json conclusion --jq '.[0].conclusion' > codeql_status.txt |
| 48 | + # CODEQL_STATUS=$(cat codeql_status.txt) |
| 49 | + # if [[ "$CODEQL_STATUS" != "success" ]]; then |
| 50 | + # echo "CodeQL Analysis did not succeed. Exiting..." |
| 51 | + # exit 1 |
| 52 | + # fi |
| 53 | + # rm codeql_status.txt |
54 | 54 |
|
55 | 55 | build: |
56 | | - needs: check-codeql |
| 56 | + #needs: check-codeql |
57 | 57 | runs-on: ubuntu-24.04 |
58 | 58 | steps: |
59 | 59 | - name: Checkout repository |
|
95 | 95 | run: cp package.json dist/ |
96 | 96 |
|
97 | 97 | publish-npm: |
98 | | - needs: [check-codeql, build] |
| 98 | + needs: [build] |
99 | 99 | runs-on: ubuntu-24.04 |
100 | 100 | permissions: |
101 | 101 | contents: read |
@@ -142,7 +142,7 @@ jobs: |
142 | 142 | NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
143 | 143 |
|
144 | 144 | publish-gpr: |
145 | | - needs: [check-codeql, build] |
| 145 | + needs: [build] |
146 | 146 | runs-on: ubuntu-24.04 |
147 | 147 | # Complete workflow even if this job fails |
148 | 148 | continue-on-error: true |
|
0 commit comments