diff --git a/.github/workflows/format_php.yml b/.github/workflows/format_php.yml index c4ea440..724779f 100644 --- a/.github/workflows/format_php.yml +++ b/.github/workflows/format_php.yml @@ -19,7 +19,7 @@ jobs: ref: ${{ github.head_ref }} - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 with: php-version: 8.4 coverage: none @@ -30,7 +30,7 @@ jobs: echo "composer_dir={$(composer config cache-files-dir)}" >> $GITHUB_OUTPUT - name: Retrieve Composer‘s cache - uses: actions/cache@v5 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: ${{ steps.composer-cache.outputs.composer_dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} @@ -41,7 +41,7 @@ jobs: run: "composer install --no-interaction --no-progress --no-scripts" - name: Retrieve PHPCS‘s cache - uses: actions/cache@v5 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: .cache/phpcs key: ${{ runner.os }}-phpcs-${{ hashFiles('phpcs.xml') }} diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 1b7f067..72d7b7c 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -22,10 +22,10 @@ jobs: # mtime needs to be restored for Psalm cache to work correctly - name: Restore mtimes - uses: chetan/git-restore-mtime-action@v2 + uses: chetan/git-restore-mtime-action@d186aca54f8760da4dec55313195e51ed3ebb0b3 # v2 - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 with: php-version: 8.4 coverage: none @@ -36,7 +36,7 @@ jobs: echo "composer_dir={$(composer config cache-files-dir)}" >> $GITHUB_OUTPUT - name: Retrieve Composer‘s cache - uses: actions/cache@v5 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: ${{ steps.composer-cache.outputs.composer_dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -49,7 +49,7 @@ jobs: # the way cache keys are set up will always cause a cache miss # but will restore the cache generated during the previous run based on partial match - name: Retrieve Psalm’s cache - uses: actions/cache@v5 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: ./cache/psalm key: ${{ runner.os }}-psalm-cache-${{ hashFiles('psalm.xml', 'psalm-baseline.xml') }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98008ff..1b65e17 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,7 @@ jobs: uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # v7 - name: "Install PHP" - uses: "shivammathur/setup-php@v2" + uses: "shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240" # v2 with: coverage: "none" php-version: "${{ matrix.php-version }}" diff --git a/.github/workflows/validator.yml b/.github/workflows/validator.yml index 9ce859b..613cfc4 100644 --- a/.github/workflows/validator.yml +++ b/.github/workflows/validator.yml @@ -18,7 +18,7 @@ jobs: ref: ${{ github.head_ref }} - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2 with: php-version: 8.4 coverage: none @@ -29,7 +29,7 @@ jobs: echo "composer_dir={$(composer config cache-files-dir)}" >> $GITHUB_OUTPUT - name: Retrieve Composer‘s cache - uses: actions/cache@v5 + uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5 with: path: ${{ steps.composer-cache.outputs.composer_dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -40,6 +40,6 @@ jobs: run: "composer install --no-interaction --no-progress --no-scripts" - name: Validate ruleset - uses: szepeviktor/phpcs-ruleset-validator@v0.4.0 + uses: szepeviktor/phpcs-ruleset-validator@f07738521ac7d7dd31ccec1920022e6fae617bcb # v0.4.0 with: xml_ruleset: IxDFCodingStandard/ruleset.xml