diff --git a/.github/workflows/reapsaw-scan.yaml b/.github/workflows/reapsaw-scan.yaml new file mode 100644 index 0000000..9ac3299 --- /dev/null +++ b/.github/workflows/reapsaw-scan.yaml @@ -0,0 +1,54 @@ +name: Reapsaw Scan +on: + push: + branches: [master] + workflow_dispatch: + branches: [master] + +jobs: + scan: + runs-on: ubuntu-latest + steps: + + - name: Install python + uses: actions/setup-python@v2 + with: + python-version: 3.6 + + - name: Get token + id: get_token + uses: machine-learning-apps/actions-app-token@master + with: + APP_ID: ${{ secrets.REAPSAW_APP_ID }} + APP_PEM: ${{ secrets.REAPSAW_APP_PEM }} + + - name: Checkout Reapsaw + uses: actions/checkout@v2 + with: + repository: newscorp-ghfb/cso-reapsaw2 + token: ${{ steps.get_token.outputs.app_token }} + + - name: Checkout + uses: actions/checkout@v2 + with: + ref: master + path: target-repo + + - name: Install reapsaw client + run: python setup.py install + + - name: Create service account file + run: | + mkdir $HOME/secrets + echo "$SA_SECRET"| base64 --decode > $HOME/secrets/sa_keyfile.json + env: + SA_SECRET: ${{ secrets.REAPSAW_SA_SECRET }} + + - name: Run Reapsaw scan + run: | + export SA_KEYFILE=$HOME/secrets/sa_keyfile.json + reapsaw scan $PROJECT_ID ${GITHUB_WORKSPACE}/target-repo $LANGUAGE --repo https://github.com/${GITHUB_REPOSITORY} --branch master + env: + PROJECT_ID: ${{ secrets.REAPSAW_PROJECT_ID }} + REAPSAW_BASE_URL: ${{ secrets.REAPSAW_BASE_URL }} + LANGUAGE: python diff --git a/CHANGELOG.md b/CHANGELOG.md index 13429b4..5d1ae2d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -93,5 +93,13 @@ the subscription *and* consuming it. Instead they will just consume an already e 2.0.0 / 2020-05-11 ================== - [changed] phased out Python 2.7 support in preparation for PyPi publication +- [changed] messages from the listener are parsed and returned, instead of requiring the user to access the JSON - [docs] - Minor improvements. +2.0.1 / 2020-11-03 +================== +- [changed] Updated dependencies and required versions of pubsub + +2.0.2 / 2020-12-03 +================== +- [changed] - Removed references to depreciated Extraction API service, now you may manually specify your API host by exporting API_HOST instead of EXTRACTION_API_HOST