diff --git a/.github/workflows/openssf.yaml b/.github/workflows/openssf.yaml new file mode 100644 index 0000000..f0fa1fb --- /dev/null +++ b/.github/workflows/openssf.yaml @@ -0,0 +1,34 @@ +name: openssf + +on: + push: + branches: [ main ] + +jobs: + scorecard: + name: OpenSSF + runs-on: ubuntu-latest + permissions: + # Needed to upload the results to code-scanning dashboard. + security-events: write + actions: read + contents: read + # Needed to access OIDC token. + id-token: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: OSSF Scorecard action + uses: ossf/scorecard-action@v2.3.1 + with: + results_file: results.sarif + results_format: sarif + publish_results: true + + - name: Upload SARIF results to code scanning + uses: github/codeql-action/upload-sarif@v2.3.6 + with: + sarif_file: results.sarif \ No newline at end of file diff --git a/go.mod b/go.mod index 46d8a06..14e03d9 100644 --- a/go.mod +++ b/go.mod @@ -91,5 +91,3 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -replace github.com/imdario/mergo => github.com/imdario/mergo v0.3.16