From 6acb0adad2bce91cf26cee6ab39939660ebca4ae Mon Sep 17 00:00:00 2001 From: Varun Sharma Date: Fri, 22 Sep 2023 21:04:42 -0700 Subject: [PATCH] Update hosted-network-without-hr.yml --- .../workflows/hosted-network-without-hr.yml | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/hosted-network-without-hr.yml b/.github/workflows/hosted-network-without-hr.yml index 677e39a6..ff7f07cf 100644 --- a/.github/workflows/hosted-network-without-hr.yml +++ b/.github/workflows/hosted-network-without-hr.yml @@ -1,20 +1,21 @@ -name: Hosted - Network Filtering Without Harden Runner - -on: [workflow_dispatch] +name: Hosted: Network Monitoring without Harden-Runner +on: + workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - #Add StepSecurity Harden Runner from here onwards - - uses: actions/checkout@v2 - with: - fetch-depth: 2 - - uses: actions/setup-go@v2 - with: - go-version: '1.17' - - name: Run coverage - run: go test -race -coverprofile=coverage.txt -covermode=atomic - - name: Upload coverage to Codecov + - uses: actions/checkout@v3 + - name: npm install run: | - bash <(curl -s https://codecov.io/bash) + cd ./src/exfiltration-demo + npm install + - name: Publish to Registry + uses: elgohr/Publish-Docker-Github-Action@v5 + with: + name: ${{ github.repository }}/prod:latest + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + registry: ghcr.io + workdir: ./src/exfiltration-demo