diff --git a/.github/workflows/add-to-project.yaml b/.github/workflows/add-to-project.yaml index 8409cf1..a9e5362 100644 --- a/.github/workflows/add-to-project.yaml +++ b/.github/workflows/add-to-project.yaml @@ -1,20 +1,10 @@ on: - workflow_call: - secrets: - ADD_TO_PROJECT_PRIVATE_KEY: - required: true + pull_request: + types: [opened] + issues: + types: [opened] jobs: add-to-project: - runs-on: ubuntu-latest - steps: - - uses: navikt/github-app-token-generator@v1 - id: get-token - with: - app-id: ${{ vars.ADD_TO_PROJECT_APP_ID }} - private-key: ${{ secrets.ADD_TO_PROJECT_PRIVATE_KEY }} - - uses: actions/add-to-project@v0.5.0 - with: - project-url: https://github.com/orgs/standard/projects/1 - github-token: ${{ steps.get-token.outputs.token }} - + uses: standard/.github/.github/workflows/add-to-project.yaml@master + secrets: inherit