Skip to content

Commit

Permalink
ci: fix permissions (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemrys authored May 29, 2023
1 parent 3e79dd9 commit 3652aee
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/update_deps.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
name: Check Splunk and SC4S Versions
on:
workflow_dispatch:
schedule:
Expand All @@ -7,32 +6,28 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v4
- uses: actions/setup-python@v4
with:
python-version: "3.7"

- name: Update SC4S Version
run: |
./sc4s_sync.sh
- name: Update Splunk Builds
run: |
./splunk_sync.sh
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
- uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.SA_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.SA_GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true

- name: Create PR with new versions
run: |
git config --global user.email ${{ secrets.GH_USER_EMAIL }}
Expand Down

0 comments on commit 3652aee

Please sign in to comment.