From 0e77457ddcbba43c875140244710306a4d41520d Mon Sep 17 00:00:00 2001 From: Kevin Lane Date: Sun, 21 Apr 2024 17:00:40 -0700 Subject: [PATCH] Fix CI (#324) --- .github/workflows/security.yml | 14 ++++---------- .github/workflows/test.yml | 1 + README.md | 5 ++--- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index bdbf4a1c..8d7be5d9 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -42,7 +42,7 @@ jobs: - name: Run OSSAR id: ossar - uses: github/ossar-action@v2 + uses: github/ossar-action@v1 - name: Upload OSSAR results if: always() @@ -53,21 +53,15 @@ jobs: semgrep: name: Semgrep runs-on: ubuntu-latest + container: + image: semgrep/semgrep steps: - name: Checkout uses: actions/checkout@v4 - name: Run Semgrep - uses: returntocorp/semgrep-action@v1 - with: - config: >- - p/ci - p/secrets - auditOn: >- - push - pull_request - generateSarif: true + run: semgrep scan --config auto --sarif > semgrep.sarif - name: Upload Semgrep results if: always() diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fafb1d1d..054e1b5a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,3 +47,4 @@ jobs: with: file: ./coverage.xml fail_ci_if_error: true + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/README.md b/README.md index 00a0aa3e..76fb0973 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,8 @@ --- -[![Tests](https://github.com/Rose-STL-Lab/torchTS/workflows/Tests/badge.svg)](https://github.com/Rose-STL-Lab/torchTS/actions?query=workflow%3ATests) -[![Quality](https://github.com/Rose-STL-Lab/torchTS/workflows/Quality/badge.svg)](https://github.com/Rose-STL-Lab/torchTS/actions?query=workflow%3AQuality) -[![Docs](https://github.com/Rose-STL-Lab/torchTS/workflows/Docs/badge.svg)](https://github.com/Rose-STL-Lab/torchTS/actions?query=workflow%3ADocs) +[![Tests](https://github.com/Rose-STL-Lab/torchTS/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/Rose-STL-Lab/torchTS/actions/workflows/test.yml) +[![Docs](https://github.com/Rose-STL-Lab/torchTS/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/Rose-STL-Lab/torchTS/actions/workflows/docs.yml) [![pre-commit.ci](https://results.pre-commit.ci/badge/github/Rose-STL-Lab/torchTS/main.svg)](https://results.pre-commit.ci/latest/github/Rose-STL-Lab/torchTS/main) [![Codecov](https://img.shields.io/codecov/c/github/Rose-STL-Lab/torchTS?label=Coverage&logo=codecov)](https://app.codecov.io/gh/Rose-STL-Lab/torchTS) [![PyPI](https://img.shields.io/pypi/v/torchts?label=PyPI&logo=python)](https://pypi.org/project/torchts)