Skip to content

Commit

Permalink
Merge pull request #4 from ansible-lockdown/devel
Browse files Browse the repository at this point in the history
Added GitHub Workflows
Signed-off-by: George Nalen <[email protected]>
  • Loading branch information
georgenalen authored Dec 21, 2020
2 parents f797641 + d24161e commit 8d9441a
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 3 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/communitytodevel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a basic workflow to help you get started with Actions

name: CommunityToDevel

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the devel branch
on:
pull_request:
branches: [ devel ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Refactr pipeline for devel pull request/merge
- name: Refactr - Run Pipeline (to devel)
# You may pin to the exact commit or the version.
# uses: refactr/action-run-pipeline@be91e2796aa225268e4685c0e01a26d5f800cd53
uses: refactr/[email protected]
with:
# API token
api_token: '${{ secrets.REFACTR_KEY }}'
# Project ID
project_id: 5f47f0c4a13c7b18373e5556
# Job ID
job_id: 5fdd15849b7a34765da4c2ef
# Variables
variables: '{ "gitrepo": "https://github.com/ansible-lockdown/Windows-2019-STIG.git", "image": "ami-0ae930fa924b34ed3", "githubBranch": "${{ github.head_ref }}" }'
# Refactr API base URL
api_url: # optional
38 changes: 38 additions & 0 deletions .github/workflows/develtomain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This is a basic workflow to help you get started with Actions

name: DevelToMain

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the devel branch
on:
pull_request:
branches: [ main ]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Refactr pipeline for devel pull request/merge
- name: Refactr - Run Pipeline (to main)
# You may pin to the exact commit or the version.
# uses: refactr/action-run-pipeline@be91e2796aa225268e4685c0e01a26d5f800cd53
uses: refactr/[email protected]
with:
# API token
api_token: '${{ secrets.REFACTR_KEY }}'
# Project ID
project_id: 5f47f0c4a13c7b18373e5556
# Job ID
job_id: 5fdd1d9683f833b179c51275
# Variables
variables: '{ "gitrepo": "https://github.com/ansible-lockdown/Windows-2019-STIG.git", "image": "ami-0ae930fa924b34ed3", "githubBranch": "devel" }'
# Refactr API base URL
api_url: # optional
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ Including an example of how to use your role (for instance, with variables passe
- role: win-2k16-stig
when:
- ansible_os_family == 'Windows'
- ansible_distribution | regex_search('(Server 2016)')
- ansible_distribution | regex_search('(Server 2019)')
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ win2019stig_disruption_high: no
win2019stig_audit_disruptive: yes

win2019stig_skip_for_travis: false
winstig_skip_for_test: false

win2019stig_workaround_for_disa_benchmark: true
win2019stig_workaround_for_ssg_benchmark: true
Expand Down
2 changes: 1 addition & 1 deletion site.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- hosts: demo
- hosts: all
vars:
is_container: false

Expand Down
4 changes: 3 additions & 1 deletion tasks/cat2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4626,7 +4626,9 @@
section: System Access
key: NewAdministratorName
value: "{{ wn19_so_000030_newadministratorname }}"
when: wn19_so_000030
when:
- wn19_so_000030
- not winstig_skip_for_test
tags:
- WN19-SO-000030
- V-93281
Expand Down

0 comments on commit 8d9441a

Please sign in to comment.