Skip to main content
Answer

OIDC pipeline for functions - pre-commit legacy service need update

  • April 25, 2025
  • 3 replies
  • 39 views

Forum|alt.badge.img+1

Hi,

When deploying functions through the OIDC pipeline with github actions, it fails on pre-commit:

As I understand, this change has not been communicated clearly enough. Looks like the actions/cache package needs an update. Will the OICD github repo be updated? I know that the CDF toolkit may be the preferred way (we are migrating over to that shortly), but in the meantime we need this pipeline up and running. As I am not experienced in building packages, can someone guide me in the right directions regarding updating the package? Looks like the workflows needs to be updated to version 4 for the actions/cache to be supported again

Best answer by Anders Albert

Updating the template will not fix the issue for you as you have already have used the template.

 

Luckily, I think the fix is small, just update the file /.github/workflows/code-quality.yaml:
 

name: Code Quality checks for PRs

on:
pull_request:

jobs:
pre-commit:
name: Pre-Commit checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- uses: pre-commit/action@v3.0.1 # Update this from 2.0.0 -> 3.0.1

 

3 replies

Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8

@Espen Ulset Nordsveen I have informed the engineering team regarding this issue. I’ll get back to you with an update.


Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • Answer
  • April 28, 2025

Updating the template will not fix the issue for you as you have already have used the template.

 

Luckily, I think the fix is small, just update the file /.github/workflows/code-quality.yaml:
 

name: Code Quality checks for PRs

on:
pull_request:

jobs:
pre-commit:
name: Pre-Commit checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- uses: pre-commit/action@v3.0.1 # Update this from 2.0.0 -> 3.0.1

 


Forum|alt.badge.img+1

Thank you!