-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create jscrambler-code-integrity.yml (#6)
Signed-off-by: Sharon <42342605+sharonstout1981@users.noreply.github.com>
- Loading branch information
1 parent
1364899
commit e68b01e
Showing
1 changed file
with
47 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,47 @@ | ||
# 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. | ||
|
||
# This is a basic workflow to help you get started with Using Jscrambler Code Integrity Action. | ||
# It automates the protection of your JavaScript Applications, so you can run it whenever a new version of your application is built. | ||
# A Jscrambler account is required to use this Workflow. | ||
# | ||
# More info can be found here : https://docs.jscrambler.com/latest/code-integrity/documentation/github-ci-integration | ||
|
||
name: Jscrambler Code Integrity | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ "main" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
- run: npm ci | ||
- run: npm run build | ||
- name: Jscrambler Code Integrity | ||
id: jscrambler | ||
# the complete list of inputs can be found here: https://github.com/marketplace/actions/jscrambler#inputs | ||
uses: jscrambler/code-integrity-actions/protect@ab65962a2ecffcc362b75a997e24a181d0bde5fb | ||
with: | ||
application-id: ${{ secrets.JSCRAMBLER_APPLICATION_ID }} # This value should be created within your Jscrambler account | ||
secret-key: ${{ secrets.JSCRAMBLER_SECRET_KEY }} # This value can be found in your Jscrambler account | ||
access-key: ${{ secrets.JSCRAMBLER_ACCESS_KEY }} # This value can be found in your Jscrambler account | ||
jscrambler-config-path: jscrambler.json # Download from your Jscrambler account | ||
files-src: | # List of Files to be protected | ||
dist/**/* | ||
files-dest: . |