Skip to content

Commit

Permalink
Merge pull request #6 from yetanalytics/deps-update
Browse files Browse the repository at this point in the history
Action dependency updates
  • Loading branch information
kelvinqian00 authored Sep 24, 2024
2 parents 5e9bb06 + 5d2c9ed commit 6e79b6a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ on:
# However we can cause this to fail by uncommenting the log4j dep in deps.edn
jobs:
nvd_scan:
uses: yetanalytics/workflow-nvd/.github/workflows/nvd-scan.yml@d73cda8cf480db81bbf6a889fff9777bb6f19fb8
uses: yetanalytics/workflow-nvd/.github/workflows/nvd-scan.yml@075ddfe15235e95590d9db32daff25b14d036976
with:
notify-slack: true
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

10 changes: 5 additions & 5 deletions .github/workflows/nvd-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout calling project
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Clojure env
uses: yetanalytics/action-setup-env@v1
uses: yetanalytics/action-setup-env@v2

- name: Get current date
id: date
Expand All @@ -51,7 +51,7 @@ jobs:
echo "d=$(date +'%d')" >> $GITHUB_OUTPUT
- name: Cache any deps
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2
Expand All @@ -76,15 +76,15 @@ jobs:
:config-filename '"${{ inputs.nvd-config-filename }}"'
- name: Produce Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() }} # Always produce an artifact
with:
name: ${{ github.sha }}-nvd-report
path: target/nvd

- name: Notify Slack
if: ${{ always() && inputs.notify-slack && (steps.scan.outcome == 'failure') }} # Only run if specified and on failure
uses: slackapi/slack-github-action@v1.23.0
uses: slackapi/slack-github-action@v1.27.0
with:
payload: |
{
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ pom.xml.asc
.lein-failures
.nrepl-port
.cpcache/
.clj-kondo/
.calva/
.lsp/
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@

(defn foo
"Always returns true"
[& args_]
[& _args]
true)

0 comments on commit 6e79b6a

Please sign in to comment.