diff --git a/.github/workflows/Feedbackapp.yml b/.github/workflows/Feedbackapp.yml new file mode 100644 index 0000000..5256cac --- /dev/null +++ b/.github/workflows/Feedbackapp.yml @@ -0,0 +1,34 @@ +# This is a basic workflow to help you get started with Actions + +name: feedbackapp + +# Controls when the workflow will run +on: [push,pull_request,workflow_dispatch] +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # This step checks out a copy of your repository. + - name: Checkout repository + uses: actions/checkout@v2 + - name: Checkmarx scan + uses: checkmarx/ast-github-action@main + with: + base_uri: https://ast-master-components.dev.cxast.net/ + cx_client_id: ${{ secrets.CX_CLIENT_ID }} + cx_client_secret: ${{ secrets.CX_CLIENT_SECRET }} + cx_tenant: ${{ secrets.CX_TENANT }} + additional_params: --project-tags 'feedback-assignee:Yoav ast' --tags 'feedback-assignee:Vered Shahar' --debug + + + + + + + + diff --git a/README.md b/README.md index 12e93c9..ab62d26 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # GH Demo main +test pr diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..b6d9a4e --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,29 @@ +# Docker +# Build a Docker image +# https://docs.microsoft.com/azure/devops/pipelines/languages/docker + +trigger: +- main + +resources: +- repo: self + +variables: + tag: '$(Build.BuildId)' + +stages: +- stage: Build + displayName: Build image + jobs: + - job: Build + displayName: Build + pool: + vmImage: ubuntu-latest + steps: + - task: Docker@2 + displayName: Build an image + inputs: + command: build + dockerfile: '$(Build.SourcesDirectory)/Dockerfile' + tags: | + $(tag)