|
5 | 5 | on:
|
6 | 6 | push:
|
7 | 7 | branches: [ main ]
|
8 |
| - pull_request: |
| 8 | + pull_request_target: |
9 | 9 | branches: [ main ]
|
10 | 10 | workflow_call:
|
11 | 11 | workflow_dispatch:
|
|
51 | 51 | - xtensa-sample_controller_zephyr-elf
|
52 | 52 |
|
53 | 53 | concurrency:
|
54 |
| - group: ${{ github.event_name == 'workflow_dispatch' && github.run_id || github.ref }} |
| 54 | + group: ${{ github.event_name == 'workflow_dispatch' && github.run_id || github.head_ref || github.ref }} |
55 | 55 | cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }}
|
56 | 56 |
|
57 | 57 | env:
|
|
75 | 75 | uses: actions/checkout@v2
|
76 | 76 | with:
|
77 | 77 | fetch-depth: 0
|
| 78 | + persist-credentials: false |
78 | 79 |
|
79 | 80 | - name: Generate version file
|
80 | 81 | run: |
|
|
91 | 92 | id: generate-matrix
|
92 | 93 | run: |
|
93 | 94 | # Set build configurations
|
94 |
| - if [ "${{ github.event_name }}" == "pull_request" ]; then |
| 95 | + if [ "${{ github.event_name }}" == "pull_request_target" ]; then |
95 | 96 | # Set configurations based on the pull request labels
|
96 | 97 | ${{ contains(github.event.pull_request.labels.*.name, 'ci-linux-x86_64') }} && build_host_linux_x86_64="y"
|
97 | 98 | ${{ contains(github.event.pull_request.labels.*.name, 'ci-linux-aarch64') }} && build_host_linux_aarch64="y"
|
@@ -481,6 +482,7 @@ jobs:
|
481 | 482 | uses: actions/checkout@v2
|
482 | 483 | with:
|
483 | 484 | submodules: recursive
|
| 485 | + persist-credentials: false |
484 | 486 |
|
485 | 487 | - name: Build crosstool-ng
|
486 | 488 | run: |
|
@@ -757,6 +759,7 @@ jobs:
|
757 | 759 | uses: actions/checkout@v2
|
758 | 760 | with:
|
759 | 761 | submodules: recursive
|
| 762 | + persist-credentials: false |
760 | 763 |
|
761 | 764 | - name: Build Linux host tools
|
762 | 765 | if: startsWith(matrix.host.name, 'linux-')
|
@@ -857,6 +860,8 @@ jobs:
|
857 | 860 |
|
858 | 861 | - name: Check out source code
|
859 | 862 | uses: actions/checkout@v2
|
| 863 | + with: |
| 864 | + persist-credentials: false |
860 | 865 |
|
861 | 866 | - name: Build CMake package
|
862 | 867 | run: |
|
@@ -938,6 +943,7 @@ jobs:
|
938 | 943 | uses: actions/checkout@v2
|
939 | 944 | with:
|
940 | 945 | path: repository
|
| 946 | + persist-credentials: false |
941 | 947 |
|
942 | 948 | - name: Download artifacts
|
943 | 949 | uses: actions/download-artifact@v2
|
|
0 commit comments