Skip to content

Commit cece2cb

Browse files
authored
chore: pin Prowler version to lastest master commit on push (#10384)
1 parent ab26608 commit cece2cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/api-container-build-push.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,12 @@ jobs:
9999
with:
100100
persist-credentials: false
101101

102+
- name: Pin prowler SDK to latest master commit
103+
if: github.event_name == 'push'
104+
run: |
105+
LATEST_SHA=$(git ls-remote https://github.com/prowler-cloud/prowler.git refs/heads/master | cut -f1)
106+
sed -i "s|prowler-cloud/prowler.git@master|prowler-cloud/prowler.git@${LATEST_SHA}|" api/pyproject.toml
107+
102108
- name: Login to DockerHub
103109
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3.7.0
104110
with:

0 commit comments

Comments
 (0)