From 31790d68c997aa110008bba16e52d04f2018e902 Mon Sep 17 00:00:00 2001 From: Zoe Zhang Date: Mon, 8 Jun 2026 15:40:33 +1200 Subject: [PATCH 1/2] ci: update backup --- .github/workflows/github_backup.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/github_backup.yaml b/.github/workflows/github_backup.yaml index 0ef29abd0..d525c9fa8 100644 --- a/.github/workflows/github_backup.yaml +++ b/.github/workflows/github_backup.yaml @@ -11,23 +11,23 @@ jobs: id-token: write steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # pin@v6.0.3 - name: Configure aws credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # pin@v6.2.0 with: aws-region: ap-southeast-2 - role-to-assume: arn:aws:iam::817632051851:role/oidc-github-actions-mattrglobal-global + role-to-assume: ${{ secrets.gh_backup_role }} role-duration-seconds: 900 role-session-name: GithubActions - name: Backing up this repo to AWS S3 - uses: peter-evans/s3-backup@v1 + uses: peter-evans/s3-backup@4f39c7dab63c7666d6ba6722d7966e7d0655583c # pin @v1.1.0 env: AWS_REGION: ${{ env.AWS_REGION }} ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }} - MIRROR_TARGET: mattrglobal-github-backup/pdf-lib + MIRROR_TARGET: ${{ secrets.gh_backup_location }}/pdf-lib SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }} AWS_SESSION_TOKEN: ${{ env.AWS_SESSION_TOKEN }} with: - args: --overwrite --remove \ No newline at end of file + args: --overwrite --remove From 88b4cd3710b9012ddd83f24dae819a6cc823cd56 Mon Sep 17 00:00:00 2001 From: Zoe Zhang Date: Wed, 10 Jun 2026 08:16:20 +1200 Subject: [PATCH 2/2] ci: remove backup workflow --- .github/workflows/github_backup.yaml | 33 ---------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/github_backup.yaml diff --git a/.github/workflows/github_backup.yaml b/.github/workflows/github_backup.yaml deleted file mode 100644 index d525c9fa8..000000000 --- a/.github/workflows/github_backup.yaml +++ /dev/null @@ -1,33 +0,0 @@ -name: Mirror repository to S3 -on: - push: - branches: - - master -jobs: - BackupRepoToS3: - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write - steps: - - name: Checkout - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # pin@v6.0.3 - - - name: Configure aws credentials - uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # pin@v6.2.0 - with: - aws-region: ap-southeast-2 - role-to-assume: ${{ secrets.gh_backup_role }} - role-duration-seconds: 900 - role-session-name: GithubActions - - - name: Backing up this repo to AWS S3 - uses: peter-evans/s3-backup@4f39c7dab63c7666d6ba6722d7966e7d0655583c # pin @v1.1.0 - env: - AWS_REGION: ${{ env.AWS_REGION }} - ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }} - MIRROR_TARGET: ${{ secrets.gh_backup_location }}/pdf-lib - SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }} - AWS_SESSION_TOKEN: ${{ env.AWS_SESSION_TOKEN }} - with: - args: --overwrite --remove