Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
token: ${{ secrets.WRITE_PACKAGE_TOKEN }}

Expand All @@ -30,7 +30,7 @@ jobs:
password: ${{ secrets.WRITE_PACKAGE_TOKEN }}

- name: Checkout the Gitops repository
uses: actions/checkout@v6
uses: actions/checkout@v7
with:
repository: fiaisis/gitops
token: ${{ secrets.GITOPS_STAGING_EDIT_TOKEN }}
Expand Down Expand Up @@ -59,12 +59,12 @@ jobs:
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/jobcreator:${{ github.sha }}

- name: Edit the YAML jobcreator.yml file for staging for jobwatcher
uses: mikefarah/yq@v4.53.2
uses: mikefarah/yq@v4.53.3
with:
cmd: yq e -i '.spec.template.spec.containers[] |= (select(.name == "jobcreator") | .env[] |= select(.name == "WATCHER_SHA").value = "${{ steps.remove_sha256_watcher.outputs.digest }}")' './components/jobcreator/envs/staging/jobcreator.yml'

- name: Edit the YAML jobcreator.yml file for staging for jobcreator
uses: mikefarah/yq@v4.53.2
uses: mikefarah/yq@v4.53.3
with:
cmd: yq e -i '.spec.template.spec.containers[] |= select(.name == "jobcreator").image = "ghcr.io/fiaisis/jobcreator@${{ steps.jobcreator_build.outputs.digest }}"' './components/jobcreator/envs/staging/jobcreator.yml'

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/formatting_and_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ jobs:
steps:
- name: Checkout project
if: github.actor != 'dependabot[bot]'
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7
uses: actions/checkout@b9e0990d219a03df7633c93f6f005a8fecbcab22 # v4.1.7
with:
token: ${{ secrets.COMMIT_TOKEN }}

- name: Checkout project (dependabot)
if: github.actor == 'dependabot[bot]'
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7
uses: actions/checkout@b9e0990d219a03df7633c93f6f005a8fecbcab22 # v4.1.7

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.12

- name: Set up cache for Python dependencies
uses: actions/cache@v5
uses: actions/cache@v6
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up python
uses: actions/setup-python@v6
Expand All @@ -23,15 +23,15 @@ jobs:
run: pytest ./job_creator --random-order --random-order-bucket=global --ignore=test/database/test_db_updater_integration.py --cov --cov-report=xml

- name: Upload coverage
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}

pytest-jobwatcher:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Set up python
uses: actions/setup-python@v6
Expand All @@ -48,6 +48,6 @@ jobs:
run: pytest ./job_watcher --random-order --random-order-bucket=global --ignore=test/database/test_db_updater_integration.py --cov --cov-report=xml

- name: Upload coverage
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@v7

- name: Build Docker image
uses: docker/build-push-action@v7
Expand Down