From 0aab037e18e3c579fd676cd4ac9d75909cdd9afa Mon Sep 17 00:00:00 2001 From: gruebel Date: Sat, 10 Aug 2024 23:41:08 +0200 Subject: [PATCH] install all needed dependencies for IAM DB update --- .github/workflows/update.yml | 15 ++++++++++----- requirements.txt | 4 ++-- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index d2a76051..1c1be873 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -6,18 +6,25 @@ on: - cron: '0 0 1 * *' workflow_dispatch: +permissions: + contents: read + jobs: update-actions: runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write steps: - - name: checkout - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - name: Setup python uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 with: python-version: '3.8' - name: install dependencies - run: pip install requests schema PyYAML click click_log beautifulsoup4 + run: | + pip install -r requirements.txt + pip install click_log - name: install policy_sentry run: echo "PYTHONPATH=$(pwd)" >> "$GITHUB_ENV" - name: Run initialize @@ -48,12 +55,10 @@ jobs: needs: update-actions steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - - name: Setup Python uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 with: python-version: '3.8' - - name: Install dependencies run: | pip install -r requirements.txt diff --git a/requirements.txt b/requirements.txt index df73bac7..2a46c825 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,7 +4,7 @@ click==8.1.7 beautifulsoup4==4.12.3 requests==2.32.3 # Config files and schema validation -PyYAML==6.0.1 +PyYAML==6.0.2 schema==0.7.7 # IAM DB -orjson==3.10.6 +orjson==3.10.7