pekko/.github/workflows/scala-steward.yml
Arnout Engelen 89195935b0
chore: restrict GitHub actions permissions (#1371)
Be more selective in granting permissions to actions
2024-06-17 23:29:23 +02:00

26 lines
935 B
YAML

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
name: Launch Scala Steward
# The GitHub Action doesn't need permissions: it only reads already-public
# data and creates PRs through the scala-steward-asf bot:
permissions: {}
jobs:
scala-steward:
runs-on: ubuntu-22.04
name: Launch Scala Steward
if: github.repository == 'apache/pekko'
steps:
- name: Launch Scala Steward
uses: scala-steward-org/scala-steward-action@v2
env:
JAVA_OPTS: "-XX:+UseG1GC -Xms4G -Xmx4G -Xss2M -XX:+AlwaysActAsServerClassMachine -XX:ReservedCodeCacheSize=256m -XX:MaxGCPauseMillis=750 -XX:+UseCompressedOops -XX:MetaspaceSize=512M"
with:
github-app-id: ${{ secrets.SCALA_STEWARD_APP_ID }}
github-app-installation-id: ${{ secrets.SCALA_STEWARD_INSTALLATION_ID }}
github-app-key: ${{ secrets.SCALA_STEWARD_PRIVATE_KEY }}
github-app-auth-only: true