Skip to content

Transitive Actions #331

Transitive Actions

Transitive Actions #331

name: Transitive Actions
on:
schedule:
- cron: 0 4 * * *
workflow_dispatch: ~
permissions: read-all
jobs:
tooling:
name: Update
runs-on: ubuntu-22.04
permissions:
contents: write # To push a commit
pull-requests: write # To open a Pull Request
steps:
- name: Checkout repository
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Create token to create Pull Request
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: automation-token
with:
app_id: ${{ secrets.AUTOMATION_ID }}
private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
- name: Update (and pin) all actions used by these actions
run: make update-actions
env:
GH_ADMIN_TOKEN: ${{ github.token }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e # pin@v5
with:
token: ${{ steps.automation-token.outputs.token }}
title: Update composite action dependencies
body: |
_This Pull Request was automatically generated by `transitive-actions.yml`_
---
Bump the versions of dependencies used in composite action to the latest available version.
If any dependency wasn't previously pinned, it should be pinned now.
Please update the `CHANGELOG.md` in accordance with these changes before you merge this.
labels: dependencies
branch: action-deps-update
commit-message: Update composite action dependencies
add-paths: |
commit/action.yml
pr/action.yml
action.yml