From 02e9f7f398723054ec3c6acbd4df3df33f56ba5e Mon Sep 17 00:00:00 2001 From: Willian Roque Date: Wed, 12 May 2021 13:16:38 +0200 Subject: [PATCH 1/2] update cicd script --- .github/workflows/main.yml | 46 ++++++++++++++++++++------------------ 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42519c6..035cd43 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: CI +name: Code Intelligence Fuzzing on: push: @@ -7,44 +7,46 @@ on: branches: [ master ] env: - PROJECT_NAME: lighttpd + FUZZING_SERVER_ADDRESS: demo.code-intelligence.com:6773 + WEB_APP_ADDRESS: https://demo.code-intelligence.com + jobs: - fuzz_default_campaign: + fuzz_tests: runs-on: ubuntu-latest steps: - id: start-fuzzing - name: Build And Start Fuzzing - uses: CodeIntelligenceTesting/github-actions/start-fuzzing@master + name: Build and Instrument + uses: CodeIntelligenceTesting/github-actions/start-fuzzing@v3 with: - cognito_user: ${{ secrets.COGNITO_USER }} - cognito_password: ${{ secrets.COGNITO_PASSWORD }} - project: ${{ env.PROJECT_NAME }} - test_collection: "default_campaign" + ci_fuzz_api_token: ${{ secrets.CI_FUZZ_API_TOKEN }} + project: "projects/organizations_82cc3b42e291d178_lighttpd-223f0fe0" + git_reference: ${{ github.sha }} + fuzzing_server_address: ${{ env.FUZZING_SERVER_ADDRESS }} - id: monitor-fuzzing - name: Monitor Fuzzing - uses: CodeIntelligenceTesting/github-actions/monitor-fuzzing@master + name: Fuzzing + uses: CodeIntelligenceTesting/github-actions/monitor-fuzzing@v3 with: - cognito_user: ${{ secrets.COGNITO_USER }} - cognito_password: ${{ secrets.COGNITO_PASSWORD }} - project: ${{ env.PROJECT_NAME }} + ci_fuzz_api_token: ${{ secrets.CI_FUZZ_API_TOKEN }} test_collection_run: ${{ steps.start-fuzzing.outputs.test_collection_run }} github_token: ${{ secrets.GITHUB_TOKEN }} pull_request_number: ${{ github.event.pull_request.number }} owner: ${{ github.event.repository.owner.login }} repository: ${{ github.event.repository.name }} + fuzzing_server_address: ${{ env.FUZZING_SERVER_ADDRESS }} + dashboard_address: ${{ env.WEB_APP_ADDRESS }} - id: report-coverage name: Report Coverage - uses: CodeIntelligenceTesting/github-actions/report-coverage@master - if: ${{ success() || failure() }} + uses: CodeIntelligenceTesting/github-actions/report-coverage@v3 + if: ${{ github.event_name == 'pull_request' && (success() || failure()) }} with: - cognito_user: ${{ secrets.COGNITO_USER }} - cognito_password: ${{ secrets.COGNITO_PASSWORD }} - project: ${{ env.PROJECT_NAME }} - test_collection: "default_campaign" + ci_fuzz_api_token: ${{ secrets.CI_FUZZ_API_TOKEN }} + test_collection_run: ${{ steps.start-fuzzing.outputs.test_collection_run }} github_token: ${{ secrets.GITHUB_TOKEN }} pull_request_number: ${{ github.event.pull_request.number }} owner: ${{ github.event.repository.owner.login }} repository: ${{ github.event.repository.name }} - commit: ${{ github.sha }} - + git_reference: ${{ github.sha }} + fuzzing_server_address: ${{ env.FUZZING_SERVER_ADDRESS }} + dashboard_address: ${{ env.WEB_APP_ADDRESS }} + From f418f479b83df9a53518cb8f2c4ee96869e63f5c Mon Sep 17 00:00:00 2001 From: Willian Roque Date: Fri, 20 Aug 2021 15:48:40 +0200 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 035cd43..274afc6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,8 +7,8 @@ on: branches: [ master ] env: - FUZZING_SERVER_ADDRESS: demo.code-intelligence.com:6773 - WEB_APP_ADDRESS: https://demo.code-intelligence.com + FUZZING_SERVER_ADDRESS: app.code-intelligence.com:6773 + WEB_APP_ADDRESS: https://app.code-intelligence.com jobs: @@ -20,7 +20,7 @@ jobs: uses: CodeIntelligenceTesting/github-actions/start-fuzzing@v3 with: ci_fuzz_api_token: ${{ secrets.CI_FUZZ_API_TOKEN }} - project: "projects/organizations_82cc3b42e291d178_lighttpd-223f0fe0" + project: "projects/organizations_89d295318b3fded6_lighttpd-223f0fe0" git_reference: ${{ github.sha }} fuzzing_server_address: ${{ env.FUZZING_SERVER_ADDRESS }} - id: monitor-fuzzing