Skip to content

auto-approve Dependabot PRs using SSE bot token #1261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
9 changes: 8 additions & 1 deletion .github/workflows/dependabotifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@ jobs:
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

auto-approve:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' && secrets.SSE_BOT_PAT != ''
uses: secure-software-engineering/actions/.github/workflows/auto-approve-dependabot.yml@deveop
with:
token: ${{ secrets.SSE_BOT_PAT }}
27 changes: 27 additions & 0 deletions .github/workflows/deploy-branch-snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Branch Documentation Snapshot

permissions:
pages: write
deployments: write
contents: write

on:
push:
branches:
- master
- develop

paths:
- 'mkdocs.yml'
- 'sootup.examples/**'
- 'docs/**'
- '.github/workflows/deploy-branch-snapshot.yml'

concurrency: pages

jobs:
deploy-snapshot:
uses: secure-software-engineering/actions/.github/workflows/pages-branch-snapshot.yml@develop
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to adapt/shorten the path

with:
latest_branch: develop
version: "maven"
25 changes: 25 additions & 0 deletions .github/workflows/deploy-pr-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PR Documentation Preview

permissions:
pages: write
deployments: write
contents: write
pull-requests: write

on:
pull_request:
types: [opened, synchronize, reopened, closed]
paths:
- 'mkdocs.yml'
- 'sootup.examples/**'
- 'docs/**'
- '.github/workflows/deploy-pr-preview.yml'

concurrency: pages

jobs:
deploy-preview:
uses: secure-software-engineering/actions/.github/workflows/pages-pr-preview.yml@develop
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

with:
enable_comment: true
title_prefix: "SootUp PR Preview: "