Repository navigation
Add NowSecure Mobile SBOM workflow #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Rchie121
wants to merge
1
commit into
main
Choose a base branch
from
Rchie121-patch-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,55 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
| # | ||
| # NowSecure: The Mobile Security Experts <https://www.nowsecure.com/>. | ||
| # | ||
| # To use this workflow, you must have a token for NowSecure Platform. If you are a NowSecure customer, | ||
| # you can find it in NowSecure Platform. | ||
| # | ||
| # If you *are not* a NowSecure customer, click here to sign up for a free trial to get access: | ||
| # <https://bit.ly/ns-git-sbom>. | ||
| # | ||
| # Instructions: | ||
| # | ||
| # 1. In the settings for your repository, click "Secrets" then "New repository secret". Name the secret "NS_TOKEN" and | ||
| # paste in your Platform token. If you do not have a Platform token, or wish to create a new one for GitHub, visit | ||
| # NowSecure Platform and go to "Profile & Preferences" then create a token labelled "GitHub". | ||
| # | ||
| # 2. Follow the annotated workflow below and make any necessary modifications then save the workflow to your repository | ||
| # and review the "Dependency graph" tab in the "Insights" pane once the action has run. | ||
|
|
||
| name: "NowSecure Mobile SBOM" | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| # The branches below must be a subset of the branches above | ||
| branches: [ "main" ] | ||
| schedule: | ||
| - cron: '40 16 * * 0' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| nowsecure: | ||
| name: NowSecure Mobile SBOM | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
|
Rchie121 marked this conversation as resolved.
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Build your application | ||
| run: ./gradlew assembleDebug # Update this to build your Android or iOS application | ||
|
Rchie121 marked this conversation as resolved.
|
||
|
|
||
| - name: NowSecure upload app | ||
| uses: nowsecure/nowsecure-sbom-action@ecb731b6f17a83fa53f756f9dae2ec7034c5ed7c | ||
| with: | ||
| token: ${{ secrets.NS_TOKEN }} | ||
| app_file: app-debug.apk # Update this to a path to your .ipa or .apk | ||
| group_id: {{ groupId }} # Update this to your desired Platform group ID | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.