From 4452bad86d855f01904f494a3a74ef2a7ef56593 Mon Sep 17 00:00:00 2001 From: Arash Date: Mon, 11 Nov 2024 13:42:19 +0100 Subject: [PATCH] Update image optimization workflow to enhance permissions and upgrade action versions --- .github/workflows/optimize-images.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/optimize-images.yml b/.github/workflows/optimize-images.yml index baa1ed82ba..3975b97b1f 100644 --- a/.github/workflows/optimize-images.yml +++ b/.github/workflows/optimize-images.yml @@ -26,6 +26,9 @@ jobs: build: name: calibreapp/image-actions runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write # Only run on main repo on and PRs that match the main repo. if: | github.repository == 'galaxyproject/galaxy-hub' && @@ -33,7 +36,7 @@ jobs: github.event.pull_request.head.repo.full_name == github.repository) steps: - name: Checkout Branch - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Compress Images id: calibre uses: calibreapp/image-actions@main @@ -48,7 +51,7 @@ jobs: if: | github.event_name != 'pull_request' && steps.calibre.outputs.markdown != '' - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v7 with: title: Auto Compress Images branch-suffix: timestamp