Skip to content

Commit 36e6da6

Browse files
authored
Merge branch 'main' into fix/long-links-no-linebreaks
2 parents 3d86643 + 16b2f19 commit 36e6da6

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/export_github_data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
role-session-name: GithubDataExport
3030
aws-region: ca-central-1
3131
- name: Export Data
32-
uses: cds-snc/github-repository-metadata-exporter@9a1f3a278fbde200c2b90c3e409a61ebda208fdc
32+
uses: cds-snc/github-repository-metadata-exporter@ccde2e2cc2d351bbc6fcd4146d2193d8da2b7a95
3333
with:
3434
github-app-id: ${{ secrets.SRE_BOT_RO_APP_ID }}
3535
github-app-installation-id: ${{ secrets.SRE_BOT_RO_INSTALLATION_ID }}

.github/workflows/s3-backup.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
- cron: "0 6 * * *"
66

77
permissions:
8+
id-token: write
89
contents: read
910

1011
jobs:
@@ -19,22 +20,17 @@ jobs:
1920
persist-credentials: false
2021

2122
- name: Configure AWS credentials
22-
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
23+
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8 # v5.1.0
2324
with:
24-
aws-access-key-id: ${{ secrets.AWS_S3_BACKUP_ACCESS_KEY_ID }}
25-
aws-secret-access-key: ${{ secrets.AWS_S3_BACKUP_SECRET_ACCESS_KEY }}
25+
role-to-assume: ${{ secrets.AWS_S3_BACKUP_IAM_ROLE_ARN }}
26+
role-session-name: S3Backup
2627
aws-region: ca-central-1
2728

28-
- name: Create ZIP bundle
29+
- name: Upload zip to S3 bucket
2930
run: |
3031
ZIP_FILE=`basename ${{ github.repository }}`-`date '+%Y-%m-%d'`.zip
3132
zip -rq "${ZIP_FILE}" .
32-
mkdir -p ${{ github.repository }}
33-
mv "${ZIP_FILE}" ${{ github.repository }}
34-
35-
- name: Upload to S3 bucket
36-
run: |
37-
aws s3 sync . s3://${{ secrets.AWS_S3_BACKUP_BUCKET }} --exclude='*' --include='${{ github.repository }}/*'
33+
aws s3 cp "${ZIP_FILE}" s3://${{ secrets.AWS_S3_BACKUP_BUCKET }}/${{ github.repository }}/"${ZIP_FILE}"
3834
3935
- name: Notify Slack channel if this job failed
4036
if: ${{ failure() }}

0 commit comments

Comments
 (0)