Skip to content

Commit

Permalink
ci: Auto update Github Action workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
vc-ci committed Aug 9, 2024
1 parent 4b69db2 commit 4885bab
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 19 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/platform-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# v3.800.6
# https://virtocommerce.atlassian.net/browse/VCST-915
# v3.800.8
# https://virtocommerce.atlassian.net/browse/VCST-1109
name: Platform CI

on:
Expand All @@ -22,6 +22,16 @@ on:
- '**/cloudDeploy.json'
branches: [ master, dev ]

pull_request:
paths-ignore:
- '.github/**'
- 'docs/**'
- 'build/**'
- 'README.md'
- 'LICENSE'
- '**/argoDeploy.json'
- '**/cloudDeploy.json'

jobs:
ci:
if: ${{ github.actor != 'dependabot[bot]' &&
Expand Down Expand Up @@ -210,7 +220,7 @@ jobs:
with:
artifactUrl: ${{ steps.artifactUrl.outputs.DOCKER_URL }}
repoOrg: ${{ github.repository_owner }}
downloadComment: 'Artifact URL:'
downloadComment: 'Image tag:'

- name: Publish Github Release
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
Expand Down Expand Up @@ -286,7 +296,7 @@ jobs:
needs: 'ci'
if: ${{ ((github.ref == 'refs/heads/dev') && (github.event_name == 'push') && (needs.ci.outputs.run-e2e == 'true')) ||
(github.event_name == 'workflow_dispatch')}}
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
with:
katalonRepo: 'VirtoCommerce/vc-quality-gate-katalon'
katalonRepoBranch: 'dev'
Expand All @@ -303,7 +313,7 @@ jobs:
deploy-cloud:
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/dev') && github.event_name == 'push' }}
needs: ci
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
with:
releaseSource: platform
platformVer: ${{ needs.ci.outputs.version }}
Expand All @@ -312,3 +322,17 @@ jobs:
argoServer: 'argo.virtocommerce.cloud'
matrix: '{"include":${{ needs.ci.outputs.matrix }}}'
secrets: inherit

owasp-scan:
if: ${{ github.ref == 'refs/heads/dev' && github.event_name == 'push' }}
runs-on: ubuntu-latest
needs:
- deploy-cloud
steps:
- name: OWASP ZAP Full Scan
uses: zaproxy/[email protected]
with:
token: ${{ secrets.REPO_TOKEN }}
target: 'https://vcptcore-dev.govirto.com'
cmd_options: '-a -d'
# allow_issue_writing: false
12 changes: 6 additions & 6 deletions .github/workflows/platform-release-hotfix.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# v3.800.6
# https://virtocommerce.atlassian.net/browse/VCST-915
# v3.800.8
# https://virtocommerce.atlassian.net/browse/VCST-1109
name: Release hotfix

on:
Expand All @@ -13,12 +13,12 @@ on:

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
with:
uploadPackage: 'true'
uploadDocker: 'true'
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
publish-docker:
needs:
[build, get-metadata]
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
with:
fullKey: ${{ needs.build.outputs.dockerFullKey }}
shortKey: '${{ needs.build.outputs.dockerShortKey }}-'
Expand All @@ -61,7 +61,7 @@ jobs:
publish-github-release:
needs:
[build, test, get-metadata]
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
with:
fullKey: ${{ needs.build.outputs.packageFullKey }}
changeLog: '${{ needs.get-metadata.outputs.changeLog }}'
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-nugets.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# v3.800.6
# https://virtocommerce.atlassian.net/browse/VCST-915
# v3.800.8
# https://virtocommerce.atlassian.net/browse/VCST-1109
name: Publish nuget

on:
Expand All @@ -13,12 +13,12 @@ on:

jobs:
test:
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
secrets:
sonarToken: ${{ secrets.SONAR_TOKEN }}

build:
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
with:
uploadPackage: 'true'
uploadDocker: 'false'
Expand All @@ -29,7 +29,7 @@ jobs:
publish-nuget:
needs:
[build, test]
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
with:
fullKey: ${{ needs.build.outputs.packageFullKey }}
forceGithub: false
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# v3.800.6
# https://virtocommerce.atlassian.net/browse/VCST-915
# v3.800.8
# https://virtocommerce.atlassian.net/browse/VCST-1109
name: Release

on:
workflow_dispatch:

jobs:
release:
uses: VirtoCommerce/.github/.github/workflows/[email protected].6
uses: VirtoCommerce/.github/.github/workflows/[email protected].8
secrets:
envPAT: ${{ secrets.REPO_TOKEN }}

0 comments on commit 4885bab

Please sign in to comment.