diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index 7d8f1ffc..66bc2998 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -9,8 +9,6 @@ jobs: steps: - name: checkout repo uses: actions/checkout@v2 - with: - persist-credentials: false - name: setup ruby uses: ruby/setup-ruby@v1 @@ -35,10 +33,9 @@ jobs: git config credential.helper 'cache --timeout=120' git config user.email "opensource@redcanary.com" git config user.name "Atomic Red Team GUID generator" - git add atomics git commit -am "Generate GUIDs from job=$GITHUB_JOB branch=$GITHUB_REF_NAME [skip ci]" - git push -u origin $GITHUB_REF_NAME + git push origin $GITHUB_REF_NAME -f fi - name: generate markdown docs for atomics @@ -58,6 +55,6 @@ jobs: git config user.email "opensource@redcanary.com" git config user.name "Atomic Red Team doc generator" git add atomics - git commit -am "ci/cd generated docs from job=$GITHUB_JOB branch=$GITHUB_REF_NAME [ci skip]" - git push -u origin $GITHUB_REF_NAME + git commit -am "Generated docs from job=$GITHUB_JOB branch=$GITHUB_REF_NAME [ci skip]" + git push origin $GITHUB_REF_NAME -f fi diff --git a/atomics/T1114.001/T1114.001.yaml b/atomics/T1114.001/T1114.001.yaml index c6149b8d..087e4d82 100644 --- a/atomics/T1114.001/T1114.001.yaml +++ b/atomics/T1114.001/T1114.001.yaml @@ -26,7 +26,7 @@ atomic_tests: prereq_command: | if (Test-Path #{file_path}\Get-Inbox.ps1) {exit 0} else {exit 1} get_prereq_command: | - Invoke-WebRequest "https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1114.001/src/Get-Inbox.ps1" -OutFile "#{file_path}\Get-Inbox.ps1" + Invoke-WebRequest "https://raw.githubusercontent.com/redcanaryco/atomic-red-team/master/atomics/T1114.001/src/Get-Inbox.ps1" -OutFile "#{file_path}\Get-Inbox.ps1" executor: command: | powershell -executionpolicy bypass -command #{file_path}\Get-Inbox.ps1 -file #{output_file}