Skip to content

Commit

Permalink
Update autopkg.yml
Browse files Browse the repository at this point in the history
Test GitHub App
  • Loading branch information
joncrain authored Jul 25, 2024
1 parent f2c4939 commit f8984b8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/autopkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,16 @@ jobs:
AUTOPKG_VERSION: 2.7.2
PYTHON_VERSION: 3.11.4
steps:
- id: create_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Checkout this repo
uses: actions/checkout@v3
with:
token: ${{ secrets.RW_REPO_TOKEN }}
token: ${{ steps.create_token.outputs.token }}

- name: Install Munki
uses: joncrain/macos-pkg-install@v1.0
Expand All @@ -40,7 +46,7 @@ jobs:
/usr/bin/defaults write com.github.autopkg RECIPE_REPO_DIR "$GITHUB_WORKSPACE"/autopkg_src/repos/
/usr/bin/defaults write com.github.autopkg FAIL_RECIPES_WITHOUT_TRUST_INFO -bool YES
/usr/bin/defaults write com.github.autopkg MUNKI_REPO "$GITHUB_WORKSPACE"
/usr/bin/defaults write com.github.autopkg GITHUB_TOKEN "${{ secrets.RW_REPO_TOKEN }}"
/usr/bin/defaults write com.github.autopkg GITHUB_TOKEN "${{ steps.create_token.outputs.token }}"
/bin/mkdir ./pkgs/
/bin/mkdir -p /var/tmp/autopkg/
/usr/bin/git config --global user.name "runner"
Expand Down Expand Up @@ -75,7 +81,7 @@ jobs:
env:
RECIPE: ${{ github.event.inputs.recipe }}
SUMMARY_WEBHOOK_TOKEN: ${{ secrets.SUMMARY_WEBHOOK_TOKEN }}
GITHUB_TOKEN: ${{ secrets.RW_REPO_TOKEN }}
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
MUNKI_WEBSITE: ${{ vars.MUNKI_WEBSITE }}

# - name: Configure AWS credentials
Expand Down

0 comments on commit f8984b8

Please sign in to comment.