Skip to content

feat: add ability to authenticate with platform services via sdk #33

feat: add ability to authenticate with platform services via sdk

feat: add ability to authenticate with platform services via sdk #33

Workflow file for this run

name: "Checks"
on:
pull_request:
branches:
- main
push:
branches:
- main
merge_group:
branches:
- main
types:
- checks_requested
permissions:
contents: read
jobs:
pr:
name: Validate PR title
if: contains(fromJSON('["pull_request", "pull_request_target"]'), github.event_name)
runs-on: ubuntu-22.04
permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@e9fabac35e210fea40ca5b14c0da95a099eff26f
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
mavenverify:
runs-on: ubuntu-latest
if: always()
needs:
- pr
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@f2acddfb5195534d487896a656232b016a682f3c # v1.9.0
with:
app-id: '${{ secrets.APP_ID }}'
private-key: '${{ secrets.AUTOMATION_KEY }}'
- run: |
git config user.name "opentdf-automation[bot]"
git config user.email "43526202+opentdf-automation[bot]@users.noreply.github.com"
git config user.password ${{ steps.generate_token.outputs.token }}
echo "GIT_USER=opentdf-automation[bot]:${{ steps.generate_token.outputs.token }}" >> $GITHUB_ENV
- uses: bufbuild/buf-setup-action@382440cdb8ec7bc25a68d7b4711163d95f7cc3aa
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK
uses: actions/setup-java@5896cecc08fd8a1fbdfaf517e29b571164b031f7
with:
java-version: '11'
distribution: 'adopt'
server-id: github
- name: Maven Verify
run: |
mvn --batch-mode clean install -DskipTests
mvn --batch-mode verify
env:
GITHUB_TOKEN: '${{ steps.generate_token.outputs.token }}'
ci:
needs:
- mavenverify
- pr
runs-on: ubuntu-latest
if: always()
steps:
- if: contains(needs.*.result, 'failure')
run: echo "Failed due to ${{ contains(needs.*.result, 'failure') }}" && exit 1