From cb183a2cb9b7c88d90316dcbb09c85e04ed05567 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Mon, 17 Mar 2025 12:47:34 +0200 Subject: [PATCH] chore(ci): pin calibreapp/image-actions version --- .github/workflows/compress-images.yml | 5 ++--- .github/workflows/pr-compress-images.yml | 7 +------ 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/compress-images.yml b/.github/workflows/compress-images.yml index 171f9f5..4c47123 100644 --- a/.github/workflows/compress-images.yml +++ b/.github/workflows/compress-images.yml @@ -5,7 +5,7 @@ name: Compress Images on Demand on: workflow_dispatch: schedule: - - cron: '00 23 * * 0' + - cron: "00 23 * * 0" permissions: read-all @@ -21,10 +21,9 @@ jobs: - name: Compress Images id: calibre - uses: calibreapp/image-actions@main + uses: calibreapp/image-actions@737ceeaeed61e17b8d358358a303f1b8d177b779 # 1.1.0 with: githubToken: ${{ secrets.GITHUB_TOKEN }} - compressOnly: true - name: Create New Pull Request If Needed if: steps.calibre.outputs.markdown != '' diff --git a/.github/workflows/pr-compress-images.yml b/.github/workflows/pr-compress-images.yml index d3bce0d..2934d99 100644 --- a/.github/workflows/pr-compress-images.yml +++ b/.github/workflows/pr-compress-images.yml @@ -24,11 +24,6 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - name: Compress Images - uses: calibreapp/image-actions@main + uses: calibreapp/image-actions@737ceeaeed61e17b8d358358a303f1b8d177b779 # 1.1.0 with: - # The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is - # currently running the action. By default, the action can’t update Pull Requests initiated from - # forked repositories. - # See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and - # https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions githubToken: ${{ secrets.GITHUB_TOKEN }}