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