Git Product home page Git Product logo

intune-node's People

Contributors

calebalbers avatar dependabot[bot] avatar latticesec avatar noticeeverything avatar renovate-bot avatar santese avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

benbitrise

intune-node's Issues

The automated release is failing 🚨

🚨 The automated release from the main branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the main branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Cannot push to the Git repository.

semantic-release cannot push the version tag to the branch main on the remote Git repository with URL https://x-access-token:[secure]@github.com/santese/intune-node.git.

This can be caused by:


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Intune App Upload: commitFileFailed

@santese, thank you for this wonderful library πŸ™.

When submitting a LOB app, things are failing on the commit step. I think the problem is in my fileEncryptionInfo. Would you please share the javascript, if you have it, that creates the fileEncryptionInfo? I'd love to reference my code against a working example.

This is my attempt at it, which fails on the commit step.

const originalFileBuffer = fs.readFileSync(originalPath);

const key = crypto.randomBytes(32);
const iv = crypto.randomBytes(16);
const encryptor = crypto.createCipheriv('aes-256-cbc', key, iv);

// readFileSync will return a buffer when no encoding option is supplied
let encrypted = encryptor.update(originalFileBuffer);
encrypted = Buffer.concat([encrypted, encryptor.final()])

const hmacKey = crypto.randomBytes(32);
const hmac = crypto.createHmac('sha256', hmacKey);
hmac.update(encrypted)
const hmacHash = hmac.digest();

let encryptedWithHmac = Buffer.concat([hmacHash, iv, encrypted])
fs.writeFileSync(encryptedPath, encryptedWithHmac)

const encryptionInfo = {
        encryptionKey: key.toString('base64'),
        macKey: hmacKey.toString('base64'),
        initializationVector: iv.toString('base64'),
        mac: hmacHash.toString('base64'),
        profileIdentifier: 'ProfileVersion1',
        fileDigest: crypto.createHash('sha256').update(originalFileBuffer).digest('base64'),
        fileDigestAlgorithm: 'SHA256'
};

console.log("***ENCRYPTION INFO***")
console.log(encryptionInfo)

const originalSize = fs.statSync(originalPath).size;
const encryptedSize =  fs.statSync(encryptedPath).size;

console.log(`Original size ${originalSize} and encrypted size ${encryptedSize}`)

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Fallback to renovate.json file as a preset is deprecated, please use a default.json file instead.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm npm-run-all Available

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/push.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
  • stefanzweifel/git-auto-commit-action v5
npm
package.json
  • @azure/storage-blob 12.17.0
  • @microsoft/microsoft-graph-client 3.0.7
  • @microsoft/microsoft-graph-types-beta 0.40.0-preview
  • axios 1.6.7
  • isomorphic-fetch 3.0.0
  • qs ^6.11.2
  • tslib 2.6.2
  • @digitalroute/cz-conventional-changelog-for-jira 8.0.1
  • @pliancy/eslint-config-ts 1.1.1
  • @pliancy/semantic-release-config-npm 2.2.0
  • @semantic-release/git 10.0.1
  • @semantic-release/github 9.2.6
  • @semantic-release/npm 11.0.3
  • @types/isomorphic-fetch 0.0.39
  • @types/jest 29.5.12
  • @types/node 20.11.25
  • @types/qs 6.9.12
  • commitizen 4.3.0
  • cpy-cli 5.0.0
  • husky 8.0.3
  • jest 29.7.0
  • npm-run-all 4.1.5
  • pinst 3.0.0
  • rimraf 5.0.5
  • semantic-release 23.0.2
  • ts-jest 29.1.2
  • ts-node 10.9.2
  • typedoc 0.25.11
  • typedoc-plugin-missing-exports 2.2.0
  • typescript 5.4.2
  • node 20.11.1

  • Check this box to trigger a request for Renovate to run again on this repository

UploadStream to Azure Blob Storage Fails

uploadToAzureBlob function is failing at blockBlobClient.uploadStream(file, bufferSize, 5). I have confirmed all the steps above the uploadStrem() are successful. This is the error message:

TypeError: _this.readable.on is not a function
at /home/??????/node_modules/@azure/storage-blob/src/utils/BufferScheduler.ts:237:21
....
...
at BlockBlobClient.uploadStream (/home/????????/node_modules/@azure/storage-blob/dist/index.js:14813:22)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.