Eslint sast permission error

I am trying to install jq and bash in the default sast image provided by gitlab , below is the gitlab ci set up.

  - template: SAST.gitlab-ci.yml
  stage: test
  allow_failure: false
    - apk update && apk add jq bash

This works fine when its using the bandit sast , however when it is using the ESlint image , it gives me this error :

$ apk update && apk add jq bash ERROR: Unable to lock database: Permission denied ERROR: Failed to open apk database: Permission denied

How am i supposed to use apk inside this image ? thanks