Skip to content

[StepSecurity] ci: Harden GitHub Actions #1653

[StepSecurity] ci: Harden GitHub Actions

[StepSecurity] ci: Harden GitHub Actions #1653

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: Merge maintained branch
on:
push:
branches:
- "2.1.x"
jobs:
merge:
name: Merge branch
if: github.repository_owner == 'phpstan'
runs-on: ubuntu-latest
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- name: "Checkout"
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: "Merge branch"
uses: everlytic/branch-merge@c4a244dc23143f824ae6c022a10732566cb8e973 # 1.1.5
with:
github_token: "${{ secrets.PHPSTAN_BOT_TOKEN }}"
source_ref: ${{ github.ref }}
target_branch: '2.2.x'
commit_message_template: 'Merge branch {source_ref} into {target_branch}'