From b2eeae7c7a2f7d69f31ca0fd9e6b04f293b7c655 Mon Sep 17 00:00:00 2001 From: Oliver Woznica Date: Wed, 24 Jan 2024 11:07:30 -0500 Subject: [PATCH 1/3] Create CodeSweep.yml --- .github/workflows/CodeSweep.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/CodeSweep.yml diff --git a/.github/workflows/CodeSweep.yml b/.github/workflows/CodeSweep.yml new file mode 100644 index 0000000..ace0a94 --- /dev/null +++ b/.github/workflows/CodeSweep.yml @@ -0,0 +1,21 @@ +name: "HCL AppScan CodeSweep" +on: + push: + branches: [ "master" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "master" ] + schedule: + - cron: '30 18 * * 0' +jobs: + scan: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Run AppScan CodeSweep + uses: HCL-TECH-SOFTWARE/appscan-codesweep-action@v2 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} From f06adbd1ce78bed08d6a839c40ff5baabdd27f85 Mon Sep 17 00:00:00 2001 From: Oliver Woznica Date: Wed, 24 Jan 2024 11:09:41 -0500 Subject: [PATCH 2/3] Update CodeSweep.yml --- .github/workflows/CodeSweep.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/CodeSweep.yml b/.github/workflows/CodeSweep.yml index ace0a94..d3cef9f 100644 --- a/.github/workflows/CodeSweep.yml +++ b/.github/workflows/CodeSweep.yml @@ -10,6 +10,10 @@ on: jobs: scan: runs-on: ubuntu-latest + permissions: + contents: read # for actions/checkout to fetch code + security-events: write # for github/codeql-action/upload-sarif to upload SARIF results + actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status steps: - name: Checkout uses: actions/checkout@v2 @@ -17,5 +21,10 @@ jobs: fetch-depth: 0 - name: Run AppScan CodeSweep uses: HCL-TECH-SOFTWARE/appscan-codesweep-action@v2 + + - name: Upload Security Analysis results to GitHub + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: results.sarif env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} From 255d84fefbd82d82113565b28651e676a62e842f Mon Sep 17 00:00:00 2001 From: Oliver Woznica Date: Wed, 24 Jan 2024 11:11:38 -0500 Subject: [PATCH 3/3] Update CodeSweep.yml --- .github/workflows/CodeSweep.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/CodeSweep.yml b/.github/workflows/CodeSweep.yml index d3cef9f..78b7ab3 100644 --- a/.github/workflows/CodeSweep.yml +++ b/.github/workflows/CodeSweep.yml @@ -21,10 +21,5 @@ jobs: fetch-depth: 0 - name: Run AppScan CodeSweep uses: HCL-TECH-SOFTWARE/appscan-codesweep-action@v2 - - - name: Upload Security Analysis results to GitHub - uses: github/codeql-action/upload-sarif@v2 - with: - sarif_file: results.sarif env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}