Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check sak modules with tfsec #7

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
de06a24
check_sak_modules_with_tfsec
Jul 8, 2022
1dae3c3
add push event in pipeline
Jul 8, 2022
31fce4a
fix directory
Jul 8, 2022
096957c
fix directory
Jul 8, 2022
952a295
add path to reviewdog
Jul 8, 2022
ab12160
change pipeline
Jul 8, 2022
0d5a599
change pipeline
Jul 8, 2022
171449a
change pipeline
Jul 8, 2022
a5c5a44
change pipeline
Jul 8, 2022
163f030
change pipeline
Jul 8, 2022
10ccd89
change pipeline
Jul 8, 2022
dd3b3bb
change pipeline
Jul 8, 2022
cd77c15
change pipeline
Jul 8, 2022
fd63c0b
change pipeline
Jul 8, 2022
1c8f597
change pipeline
Jul 8, 2022
c0b4b69
change pipeline
Jul 8, 2022
7a58c5b
change pipeline
Jul 8, 2022
e1c281f
change pipeline
Jul 8, 2022
5b5e373
change pipeline
Jul 8, 2022
37c7d77
change pipeline
Jul 8, 2022
10b7898
change pipeline
Jul 8, 2022
1f17d27
change pipeline
Jul 8, 2022
80c04bc
change pipeline
Jul 8, 2022
7618c3d
change pipeline
Jul 8, 2022
42b0d14
change pipeline
Jul 8, 2022
fdb3ce7
Merge branch 'master' into check_sak_modules_with_tfsec
mhernahapetyan Jul 8, 2022
1422887
change pipeline
Jul 8, 2022
123b9fc
change pipeline
Jul 8, 2022
eee6c6b
change pipeline
Jul 8, 2022
4a87e77
change pipeline
Jul 8, 2022
9175716
change pipeline
Jul 8, 2022
7e8ee38
change pipeline
Jul 8, 2022
da98059
change pipeline
Jul 8, 2022
120b345
change pipeline
Jul 8, 2022
3c39b1a
change pipeline
Jul 8, 2022
2ed565d
change pipeline
Jul 8, 2022
9546e14
change pipeline
Jul 8, 2022
82407d2
change pipeline
Jul 8, 2022
efa09a2
change pipeline
Jul 8, 2022
959f47e
change pipeline
Jul 8, 2022
c7cedc7
change pipeline
Jul 8, 2022
39fc4c9
change pipeline
Jul 8, 2022
65ba3f7
test push
Aug 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change pipeline
  • Loading branch information
Mher Nahapetyan authored and Mher Nahapetyan committed Jul 8, 2022
commit 120b345b451b9949d01a48882d3f69ed47a347f1
36 changes: 12 additions & 24 deletions .github/workflows/tfsec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,19 @@ jobs:
- name: Clone repo
uses: actions/checkout@master
- name: tfsec
id : test
uses: aquasecurity/[email protected]
with:
soft_fail: true
- name: Check return codes
if: success() || failure ()
run: |
tfsec_return="${{ steps.test.outputs.tfsec-return-code }}"
reviewdog_return="${{ steps.test.outputs.reviewdog-return-code }}"
if [[ "$tfsec_return" -eq 1 ]]; then
echo "tfsec correctly returned failure ${tfsec_return}"
else
echo "tfsec returned ${tfsec_return}, expected '1'. Failing..."
exit 1
fi

tfsec-pr-check:
name: tfsec (github-pr-check)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
# The check is expected to fail on the test data
- name: Check return codes
if: success() || failure ()
run: |
tfsec_return="${{ steps.test.outputs.tfsec-return-code }}"
reviewdog_return="${{ steps.test.outputs.reviewdog-return-code }}"
if [[ "$tfsec_return" -eq 1 ]]; then
echo "tfsec correctly returned failure ${tfsec_return}"
else
echo "tfsec returned ${tfsec_return}, expected '1'. Failing..."
exit 1
fi
if [[ "$reviewdog_return" -eq 0 ]]; then
echo "reviewdog correctly returned success: ${reviewdog_return}"
else
echo "reviewdog returned ${reviewdog_return}, expected '0'. Failing..."
exit 1
fi