-
Notifications
You must be signed in to change notification settings - Fork 10
Update workflows to use artifact actions v4 and replace the archived workflow … #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
561ea17
Update workflows to use actions v4 and replace the archived workflow …
jtquach1 4542b74
Revert version change
jtquach1 68c066a
Update secrets used in verify-ec2.yml
jtquach1 1bae38f
Update secrets used in verify-ec2.yml again
jtquach1 e4240c8
Update Ruby version in verify-ec2.yml
jtquach1 d4b52c7
Add unique artifact name per suite
jtquach1 25be23e
Update to Ruby 3.1
jtquach1 aaee4e2
it's trying to install inspec6 and then dying on the license key
Amndeep7 ab2cb8c
update actions/checkout to v4
Amndeep7 655276f
threshold file flag changed from F to T
Amndeep7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,30 +17,30 @@ jobs: | |
| KITCHEN_YAML: kitchen.ec2.yml | ||
| strategy: | ||
| matrix: | ||
| suite: ["vanilla", "hardened"] | ||
| suite: ['vanilla', 'hardened'] | ||
| fail-fast: false | ||
| steps: | ||
| - name: add needed packages | ||
| run: sudo apt-get install -y jq | ||
| - name: Configure AWS credentials | ||
| env: | ||
| AWS_SUBNET_ID: ${{ secrets.AWS_SUBNET_ID }} | ||
| AWS_SSH_KEY_ID: ${{ secrets.AWS_SSH_KEY_ID }} | ||
| AWS_SUBNET_ID: ${{ secrets.SAF_AWS_SUBNET_ID }} | ||
| AWS_SSH_KEY_ID: ${{ secrets.SAF_AWS_SSH_KEY_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: actions/setup-ruby@v1 | ||
| uses: ruby/setup-ruby@v1 | ||
| with: | ||
| ruby-version: "2.7" | ||
| ruby-version: '3.1' | ||
| # - name: Setup caching | ||
| # uses: actions/cache@v2 | ||
| # uses: actions/cache@v4 | ||
| # with: | ||
| # path: vendor/bundle | ||
| # key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | ||
|
|
@@ -57,7 +57,7 @@ jobs: | |
| - name: Update profile.json in the repository | ||
| uses: stefanzweifel/[email protected] | ||
| with: | ||
| commit_message: "Updating profile.json in the repository" | ||
| commit_message: 'Updating profile.json in the repository' | ||
| branch: ${{ github.branch }} | ||
| - name: Run Kitchen Create | ||
| run: bundle exec kitchen create ${{ matrix.suite }}-ubuntu-1804 || true | ||
|
|
@@ -70,12 +70,13 @@ jobs: | |
| - name: Display our ${{ matrix.suite }} results summary | ||
| uses: mitre/saf_action@v1 | ||
| with: | ||
| command_string: "view:summary -i spec/results/${{ matrix.suite }}-test-result.json" | ||
| command_string: 'view:summary -i spec/results/${{ matrix.suite }}-test-result.json' | ||
| - name: Ensure the scan meets our ${{ matrix.suite }} results threshold | ||
| uses: mitre/saf_action@v1 | ||
| with: | ||
| command_string: "validate:threshold -i spec/results/${{ matrix.suite }}-test-result.json -F ${{ matrix.suite }}.threshold.yml" | ||
| command_string: 'validate:threshold -i spec/results/${{ matrix.suite }}-test-result.json -F ${{ matrix.suite }}.threshold.yml' | ||
| - name: Save Test Result JSON | ||
| uses: actions/upload-artifact@v2 | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ matrix.suite }}-results | ||
| path: spec/results | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.