Giter VIP home page Giter VIP logo

subscription-template's Issues

github-actions[bot] 权限导致的相关问题

在测试过程中 发现当前 package.json 中规定的 lint eslint --cache --fix . 可能会对 workflows 文件 格式化

但是由于 github-actions[bot] 权限不够,会导致 check_fix_push.yml 运行到 Git push 这一步失败。

因为 github-actions[bot] 不能修改 workflows 文件

日志如下:

! [remote rejected] HEAD -> main (refusing to allow a GitHub App to create or update workflow `.github/workflows/build_release.yml` without `workflows` permission)
error: failed to push some refs to 'https://github.com/aoguai/test.git'
Error: Invalid exit code: 1
   at ChildProcess.<anonymous> (/home/runner/work/_actions/ad-m/github-push-action/master/start.js:30:21)
   at ChildProcess.emit (node:events:514:28)
   at maybeClose (node:internal/child_process:1105:16)
   at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
 code: 1
}

可能的解决办法:修改为 eslint --cache --fix ./**/*.{js,ts,jsx,tsx} 或其他只针对规则相关代码文件格式化的限制 即可

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.