Skip to content

Commit

Permalink
fix gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zachrundle committed Aug 11, 2024
1 parent f6bbb46 commit 2eb272c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/tfsec.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: tfsec

on:
push:
branches:
- main
pull_request:

jobs:
tfsec:
name: tfsec
runs-on: ubuntu-latest

steps:
- name: Clone repo
uses: actions/checkout@master
- name: tfsec
uses: actions/checkout@v4

- name: Run tfsec
id: tfsec
uses: aquasecurity/[email protected]
with:
soft_fail: true
Expand All @@ -22,9 +26,8 @@ jobs:
uses: actions/github-script@v6
with:
script: |
const { exec } = require('@actions/exec');
let output = '';
await exec('tfsec', [], {
await github.exec('tfsec', [], {
listeners: {
stdout: (data) => {
output += data.toString();
Expand Down

0 comments on commit 2eb272c

Please sign in to comment.