Skip to content

Commit

Permalink
Merge pull request #68 from psadi/feature/hooks
Browse files Browse the repository at this point in the history
feat: add gh action linter
  • Loading branch information
psadi authored Oct 19, 2024
2 parents cc42273 + e0c0dde commit 5667c13
Show file tree
Hide file tree
Showing 6 changed files with 175 additions and 171 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ jobs:

- name: Build Docker Image
run: |
docker build -t docker.io/psadi/bbcli:${{ steps.meta.outputs.tags || github.sha }} .
docker build -t docker.io/psadi/bbcli:${{ github.event.release.tag_name || github.sha }} .
- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: docker.io/psadi/bbcli:${{ steps.meta.outputs.tags || github.sha }}
image-ref: docker.io/psadi/bbcli:${{ github.event.release.tag_name || github.sha }}
format: "sarif"
output: "trivy-results.sarif"
exit-code: "1"
Expand All @@ -159,4 +159,4 @@ jobs:
- name: Push Docker Image
if: ${{ github.event_name == 'release' }}
run: |
docker push docker.io/psadi/bbcli:${{ steps.meta.outputs.tags || github.sha }}
docker push docker.io/psadi/bbcli:${{ github.event.release.tag_name }}
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ repos:
- id: pdm-export
args: ["-o", "requirements.txt", "--without-hashes"]
files: ^pdm.lock$
- repo: https://github.com/rhysd/actionlint
rev: v1.7.3
hooks:
- id: actionlint-system
2 changes: 1 addition & 1 deletion config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@

[auth]
; Dummu local hostname
bitbucket_host = https://bb.picolo.co.in
bitbucket_host = https://bitbucket.org.com
username = xxxxxxxx
token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Loading

0 comments on commit 5667c13

Please sign in to comment.