File tree Expand file tree Collapse file tree 3 files changed +35
-4
lines changed Expand file tree Collapse file tree 3 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 16
16
steps :
17
17
- uses : aws-actions/configure-aws-credentials@v1
18
18
with :
19
- aws-access-key-id : ${{ secrets.SIGSCI_PROD_ACCESS_KEY_ID }}
20
- aws-secret-access-key : ${{ secrets.SIGSCI_PROD_SECRET_ACCESS_KEY }}
19
+ aws-access-key-id : ${{ secrets.SIGSCI_CORE_ACCESS_KEY_ID }}
20
+ aws-secret-access-key : ${{ secrets.SIGSCI_CORE_SECRET_ACCESS_KEY }}
21
21
aws-region : us-west-2
22
22
- name : Check out code into the Go module directory
23
23
uses : actions/checkout@v2
Original file line number Diff line number Diff line change 12
12
- name : Configure aws credentials
13
13
uses : aws-actions/configure-aws-credentials@v1
14
14
with :
15
- aws-access-key-id : ${{ secrets.SIGSCI_PROD_ACCESS_KEY_ID }}
16
- aws-secret-access-key : ${{ secrets.SIGSCI_PROD_SECRET_ACCESS_KEY }}
15
+ aws-access-key-id : ${{ secrets.SIGSCI_CORE_ACCESS_KEY_ID }}
16
+ aws-secret-access-key : ${{ secrets.SIGSCI_CORE_SECRET_ACCESS_KEY }}
17
17
aws-region : us-west-2
18
18
- name : Setup python
19
19
uses : actions/setup-python@v2
Original file line number Diff line number Diff line change
1
+ on :
2
+ schedule :
3
+ - cron : ' 0 17 * * 3' # every Wed at 11 AM PDT
4
+
5
+ jobs :
6
+ rotate :
7
+ name : Rotate IAM User Keys
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+
11
+ - name : Rotate AWS Access Keys
12
+ uses : kneemaa/github-action-rotate-aws-secrets@a0336cf15368b9516a0b11d122e96e950da12a7e # Commit sha for v1.1.0
13
+ env :
14
+ AWS_ACCESS_KEY_ID : ${{ secrets.SIGSCI_CORE_ACCESS_KEY_ID }}
15
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.SIGSCI_CORE_SECRET_ACCESS_KEY }}
16
+ GITHUB_TOKEN : ${{secrets.ROBOTICS_UPDATE_GH_SECRETS}}
17
+ OWNER_REPOSITORY : ${{github.repository}}
18
+ GITHUB_ACCESS_KEY_NAME : " SIGSCI_CORE_ACCESS_KEY_ID"
19
+ GITHUB_SECRET_KEY_NAME : " SIGSCI_CORE_SECRET_ACCESS_KEY"
20
+
21
+ - name : Send Slack Status
22
+ if : failure()
23
+ uses : 8398a7/action-slack@45986a1c69e93353648c176ce49eecddebebf64e # Commit sha for v3.9.0
24
+ with :
25
+ status : ${{job.status}}
26
+ author_name : ${{ secrets.AUTHOR_NAME }}
27
+ username : ${{ secrets.AUTHOR_NAME }}
28
+ text : Failed to rotate the tokens for ${{ secrets.USERNAME }}
29
+ channel : ${{ secrets.CHANNEL}}
30
+ env :
31
+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
You can’t perform that action at this time.
0 commit comments