-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
60 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Request SISA Training Confirmation | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 1 1 *' # Runs at midnight on January 1st and July 1st every year | ||
workflow_dispatch: # This enables manual triggering | ||
|
||
|
||
jobs: | ||
create-issues: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install GitHub CLI | ||
run: sudo apt-get install gh | ||
|
||
- name: Read issue body | ||
id: acknowledgment_request | ||
run: | | ||
CONTENT=$(cat .github/workflows/sisa-training-request-template.md) | ||
echo "content<<EOF" >> $GITHUB_ENV | ||
echo "$CONTENT" >> $GITHUB_ENV | ||
echo "EOF" >> $GITHUB_ENV | ||
- name: Get team members and create issues | ||
env: | ||
ISSUE_BODY: ${{ env.content }} | ||
GH_TOKEN: ${{ github.token }} | ||
run: | | ||
gh issue create --title "Create SISA Training Requests" --body "$ISSUE_BODY" --assignee richford | ||
This file contains 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Generate infosec acknowledgment issues | ||
|
||
It's time to generate SISA training issues for all of the ROAR developers. | ||
|
||
Perform these commands on your command line: | ||
|
||
```shell | ||
TEAM_MEMBERS=$(gh api orgs/yeatmanlab/teams/roar-maintainers/members --jq '.[].login') | ||
|
||
for MEMBER in $TEAM_MEMBERS | ||
do | ||
ISSUE_BODY="@$MEMBER, it's time for your annual Information Security Training. Please complete a course from the [Stanford Information Security Academy](https://uit.stanford.edu/sisa/training_and_education). When you are done, confirm your training by adding a row to the sisa-training-log.md file in this repository." | ||
gh issue create --title "Training request for $MEMBER" --body "$ISSUE_BODY" --assignee $MEMBER | ||
done | ||
``` |
This file contains 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ROAR Information Security Training Log | ||
|
||
| Developer Name | Date | Training Completed | | ||
| :------------------ | :--------- | :---------------------------- | | ||
| Adam Richie-Halford | 2024-10-19 | SISA - Information Security I | |