This repository was archived by the owner on Jun 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +26
-16
lines changed Expand file tree Collapse file tree 1 file changed +26
-16
lines changed Original file line number Diff line number Diff line change 14
14
# limitations under the License.
15
15
#
16
16
17
- name : Horusec Validation
17
+ name : Horusec Pull Request
18
18
19
19
on :
20
- pull_request :
21
- branches :
22
- - main
23
- - horusec
24
- - release/*
20
+ pull_request :
21
+ branches :
22
+ - main
23
+ - horusec
24
+ - release/*
25
+
25
26
jobs :
26
- horusec-validation :
27
- name : Horusec Validation
28
- runs-on : ubuntu-latest
29
- steps :
30
- - name : Check out code
31
- uses : actions/checkout@v2
27
+ horusec :
28
+ name : horusec
29
+ runs-on : ubuntu-latest
30
+ steps :
31
+ - name : Check out code
32
+ uses : actions/checkout@v2
33
+ with :
34
+ depth : 0
32
35
33
- - name : Running Horusec
34
- run : |
35
- curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/main/deployments/scripts/install.sh | bash -s latest-rc
36
- horusec start -p . -e true -u "https://api-horusec.zup.com.br" -G true -n "${GITHUB_REPOSITORY}_${GITHUB_REF##*/}"
36
+ - name : Running Horusec
37
+ env :
38
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ HORUSEC_CLI_REPOSITORY_AUTHORIZATION : ${{secrets.HORUSEC_TOKEN}}
40
+ HORUSEC_CLI_HORUSEC_API_URI : " https://api-horusec.zup.com.br"
41
+ HORUSEC_CLI_REPOSITORY_NAME : ${{ github.event.pull_request.head.repo.full_name }}
42
+ REPOSITORY_OWNER : ${{ github.event.pull_request.head.repo.full_name }}
43
+ run : |
44
+ echo "Repository Owner is: ${{env.REPOSITORY_OWNER}}"
45
+ curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/main/deployments/scripts/install.sh | bash -s latest-rc
46
+ horusec start -p . -e=$(if [ "${{env.REPOSITORY_OWNER}}" == "ZupIT/beagle-backend-kotlin" ]; then echo "true"; else echo "false"; fi) -G true
You can’t perform that action at this time.
0 commit comments