Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
fix: horusec validation (#3)
Browse files Browse the repository at this point in the history
Signed-off-by: Matheus Ribeiro <[email protected]>
  • Loading branch information
matheusribeirozup authored Aug 6, 2021
1 parent 6dd3367 commit 2c40134
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/horusec-pr.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#
# Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: Horusec Validation
Expand All @@ -29,7 +29,7 @@ jobs:
steps:
- name: Check out code
uses: actions/checkout@v2

- name: Read secrets from AWS Secrets Manager into environment variables
uses: abhilash1in/[email protected]
with:
Expand All @@ -39,10 +39,10 @@ jobs:
secrets: |
beagle/core/security
parse-json: true

- name: Running Horusec
env:
HORUSEC_CLI_REPOSITORY_AUTHORIZATION: ${{ env.BEAGLE_CORE_SECURITY_HORUSEC_CLI_REPOSITORY_AUTHORIZATION }}
run: |
curl -fsSL https://horusec.io/bin/install.sh | bash
horusec start -p ./ --ignore="**/sample/**,**/.gradle/**,**/Gemfile.lock" -a "$HORUSEC_CLI_REPOSITORY_AUTHORIZATION" -n "${GITHUB_REPOSITORY}_${GITHUB_REF##*/}" -e true -u "https://api-horusec.zup.com.br" -G true
curl -fsSL https://raw.githubusercontent.com/ZupIT/horusec/master/deployments/scripts/install.sh | bash -s latest
horusec start -p="./" -e="true"
8 changes: 8 additions & 0 deletions horusec-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"horusecCliFilesOrPathsToIgnore": [
"**/sample/**",
"**/.gradle/**",
"**/Gemfile.lock",
"**/gradlew.bat"
]
}

0 comments on commit 2c40134

Please sign in to comment.