Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanda Cornwell authored and Amanda Cornwell committed Oct 21, 2023
1 parent f672041 commit fb93f2a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/gobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@ jobs:
ls
cat test.txt
- name: Read File and Set as Environment Variable
run: |
file_content=$(<test.txt)
echo $file_content
echo "::set-env name=MY_VARIABLE::$file_content"
- name: Echo a Variable
- name: Run scan
run: |
echo "Variable Value: $MY_VARIABLE"
image_tag=$(<test.txt)
echo $image_tag
docker run -e JKN_USERNAME=${{ secrets.JKN_USERNAME }} -e JKN_PASSWORD=${{ secrets.JKN_PASSWORD }} -t docker-terrascan-local.artifactory.eng.tenable.com/tenb-cb:1.0.10.DEV231011191849-J-EPRT-TENB-CB-TENB-CB-CICD-5797-10 jobs execute-job --credential-mode env -n teams-deleng-terraform -p deleng-terraform/Scratch/dockerhub-tester -d '{"APPID":"test", "IMAGE":"docker-terrascan-local.artifactory.eng.tenable.com/terrascan:${{ $image_tag }}", "TARGETS": tenable/terrascan:${{ $image_tag }},tenable/was-scanner:latest, "MULTIARCH":"true"}' --cloudflare-access-secret ${{ secrets.CF_ACCESS_TOKEN }}:${{ secrets.CF_SECRET }}
- name: Setup Go
uses: actions/setup-go@v4
Expand Down

0 comments on commit fb93f2a

Please sign in to comment.