Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/lf-check-upstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,28 @@ jobs:
with:
egress-policy: 'audit'

# The bump pull requests are opened with the Linuxfabrik automation app
# instead of GITHUB_TOKEN. Pull requests authored by GITHUB_TOKEN do not
# get their checks run, so the required `dependency-review` check never
# reports and the pull request stays blocked forever.
- name: 'Generate app token'
id: 'app-token'
uses: 'actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1' # v3.2.0
with:
client-id: '${{ vars.LF_AUTOMATION_CLIENT_ID }}'
private-key: '${{ secrets.LF_AUTOMATION_APP_PRIVATE_KEY }}'

- name: 'git clone https://github.com/Linuxfabrik/packaging'
uses: 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' # v7.0.1
with:
token: '${{ steps.app-token.outputs.token }}'

- name: 'Open a version-bump PR for every package behind its upstream'
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
GITHUB_TOKEN: '${{ steps.app-token.outputs.token }}'
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
git config user.name 'linuxfabrik-automation[bot]'
git config user.email 'linuxfabrik-automation[bot]@users.noreply.github.com'

for dir in packages/*/; do
name="$(basename "$dir")"
Expand Down