-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* VIH-11085 Add OSV Scanner GitHub action * Create launch-darkly-flag-sync.yml
- Loading branch information
1 parent
a40bd31
commit 4917627
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Find LaunchDarkly flag code references | ||
on: push | ||
# cancel in-flight workflow run if another push was triggered | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
launchDarklyCodeReferences: | ||
name: LaunchDarkly Code References | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 11 # This value must be set if the lookback configuration option is not disabled for find-code-references. Read more: https://github.com/launchdarkly/ld-find-code-refs#searching-for-unused-flags-extinctions | ||
- name: LaunchDarkly Code References | ||
uses: launchdarkly/find-code-references@v2 | ||
with: | ||
accessToken: ${{ secrets.LD_SERVICE_TOKEN }} | ||
projKey: VH | ||
debug: true | ||
prune: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: OSV-Scanner PR Scan | ||
|
||
# Change "main" to your default branch if you use a different name, i.e. "master" | ||
on: | ||
pull_request: | ||
branches: [master] | ||
merge_group: | ||
branches: [master] | ||
|
||
permissions: | ||
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117 | ||
actions: read | ||
# Require writing security events to upload SARIF file to security tab | ||
security-events: write | ||
# Only need to read contents | ||
contents: read | ||
|
||
jobs: | ||
scan-pr: | ||
uses: 'google/osv-scanner-action/.github/workflows/[email protected]' |