Obfuscate my files and push to repository #26046
-
Hi, all. Hope you are going. is it possible to obfuscate my files when i pushed to my repository and after obfuscated it should be pushed to another repository. Is it possible using actions or is their any way to do like that. Hoping with a positive response. Regards, shiva |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Do you mean that after pushing some modified or added files to a repository, then use workflow to automatically sync the new changes to another repository?
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply @brightran . If you don’t mind can you tell, How can i obfuscate those files which are containing .js extension. And rather than pushing to another repository i want to push to another branch is it possible? |
Beta Was this translation helpful? Give feedback.
-
What do you mean about “obfuscate files” ? Can you give an example to explain the actual behavior you want.
You can try to use the git-merge command to merge the new commits from a branch into another branch in the same repository. |
Beta Was this translation helpful? Give feedback.
-
brightran:
Their is a tool called https://obfuscator.io for obfuscate javascript files. For example: if you have javascript file as following code:
The above code will be converted to the file code
So that anyone can’t read it and only browser can read it and debug it. And they (https://obfuscator.io) provided a way to obfuscate code:
So want my main aim is
If you don’t mind can you code for my aim. Hoping with a positive response 😇 Regards, shivani |
Beta Was this translation helpful? Give feedback.
-
In your repository, you can try to setup a workflow on the code branch like as this:
|
Beta Was this translation helpful? Give feedback.
-
I setup workflow as you said above
and i got an error in it. if you don’t mind can i contact you personally to solve my problem. |
Beta Was this translation helpful? Give feedback.
-
The “command not found” error occurs because there is no step in your workflow that installs the |
Beta Was this translation helpful? Give feedback.
-
As @airtower-luna mentioned, the JavaScript obfuscator is not the default software installed on GitHub-hosted runners. You need to install this tool before using it. In the README of the the JavaScript obfuscator, it has shared the main commands to install this tool (see here). |
Beta Was this translation helpful? Give feedback.
@shivani-designer,
As @airtower-luna mentioned, the JavaScript obfuscator is not the default software installed on GitHub-hosted runners. You need to install this tool before using it.
In the README of the the JavaScript obfuscator, it has shared the main commands to install this tool (see here).
In your workflow, you can reference the installation steps in the README to set a step for installing the JavaScript obfuscator on the runner.