Skip to content

Commit

Permalink
ci(openssf): add openssf workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbrad committed Oct 29, 2023
1 parent 4fa172f commit 51cfd63
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/openssf.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
results_file: results.sarif
results_format: sarif
publish_results: true

- name: Upload SARIF results to code scanning
uses: github/codeql-action/[email protected]
with:
sarif_file: results.sarif
2 changes: 0 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 51cfd63

Please sign in to comment.