Skip to content

Commit

Permalink
Merge pull request #16 from mitre/update-artifact-actions-to-v4
Browse files Browse the repository at this point in the history
Update workflow to use artifact actions v4
  • Loading branch information
Amndeep7 authored Dec 31, 2024
2 parents 71445fa + cab8dcc commit 1ae45ab
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/verify-s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ jobs:
run: sudo apt-get install -y jq
- name: Configure AWS credentials
env:
AWS_SG_ID: ${{ secrets.AWS_SG_ID }}
AWS_SUBNET_ID: ${{ secrets.AWS_SUBNET_ID }}
AWS_SG_ID: ${{ secrets.SAF_AWS_SG_ID }}
AWS_SUBNET_ID: ${{ secrets.SAF_AWS_SUBNET_ID }}
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
aws-access-key-id: ${{ secrets.SAF_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SAF_AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.SAF_AWS_REGION }}
- name: Check out repository
uses: actions/checkout@v2
- name: Clone full repository so we can push
run: git fetch --prune --unshallow
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.1.2"
ruby-version: '3.1.2'
- name: Disable ri and rdoc
run: 'echo "gem: --no-ri --no-rdoc" >> ~/.gemrc'
- name: Bundle install gems
Expand All @@ -44,14 +44,14 @@ jobs:
- name: Run Inspec test
run: bundle exec inspec exec . --input single_bucket=${{ secrets.BUCKET_W_PUB_OBJ }} --auto-install-gems --target aws:// --reporter cli json:results.json || true
- name: Save Test Result JSON
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ./results.json
- name: Display our results summary
uses: mitre/saf_action@v1
with:
command_string: "view:summary -i results.json"
command_string: 'view:summary -i results.json'
- name: Ensure the scan meets our results threshold
uses: mitre/saf_action@v1
with:
command_string: "validate:threshold -i results.json -F threshold.yml"
command_string: 'validate:threshold -i results.json -F threshold.yml'

0 comments on commit 1ae45ab

Please sign in to comment.