Skip to content

Commit

Permalink
feat: updated pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
PWS-TE committed Jan 21, 2025
1 parent f0284b2 commit 69abb76
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,26 @@ env:
S3_BUCKET_REGION: "eu-west-1"

jobs:
pre_commit:
runs-on: ubuntu-latest
outputs:
java_version: ${{ env.JAVA_VERSION }}
java_version_supported_by_repo: ${{ env.JAVA_VERSION_SUPPORTED_BY_REPO }}
steps:
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: changed-files
uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
write-list-to-env: true
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
# pre_commit:
# runs-on: ubuntu-latest
# outputs:
# java_version: ${{ env.JAVA_VERSION }}
# java_version_supported_by_repo: ${{ env.JAVA_VERSION_SUPPORTED_BY_REPO }}
# steps:
# - uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - id: changed-files
# uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
# with:
# write-list-to-env: true
# - uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]

veracode_sca:
name: "Veracode - Source Clear Scan (SCA)"
needs:
- pre_commit
# needs:
# - pre_commit
runs-on: ubuntu-latest
if: >
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'schedule' || github.event_name == 'pull_request' || github.actor == 'dependabot[bot]') &&
Expand All @@ -66,8 +66,8 @@ jobs:

veracode_sast:
name: "Pipeline SAST Scan"
needs:
- pre_commit
# needs:
# - pre_commit
runs-on: ubuntu-latest
if: >
(github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'pull_request' || github.event_name == 'schedule') &&
Expand All @@ -77,6 +77,7 @@ jobs:
- uses: actions/checkout@v4
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
repository: "Alfresco/veracode-baseline-archive"
Expand Down

0 comments on commit 69abb76

Please sign in to comment.