Comments (7)
probably because between then and now actions got access to the default token by putting it in the action.yaml so users were spared having to specify it. This is orthogonal though I think - it's about restricting that token to just the two perms of actions read/write and removing all the rest, which would be a nice way to reduce security surface area
from cancel-workflow-action.
It needs actions read as well, at least https://docs.github.com/en/rest/reference/permissions-required-for-github-apps#permission-on-actions
Yeh I think write includes read. Havenβt tried it yet (ref video-dev/hls.js#3874) but will report back if it works
from cancel-workflow-action.
It needs actions read as well, at least https://docs.github.com/en/rest/reference/permissions-required-for-github-apps#permission-on-actions
have you tried it with a restricted token? would be interesting to see if actions read/write really was sufficient - then I'm sure a PR to the docs could work, @styfle has merged everything reasonable I've seen get proposed based on my last look through here while integrating it :-)
from cancel-workflow-action.
I had more documentation earlier but I removed it for some reason, I can't remember why π€
from cancel-workflow-action.
Looks like it worked. No errors in logs
from cancel-workflow-action.
I have been using it with apparent success in our project:
https://github.com/mfem/mfem/blob/c4d3610cb2e60501a9209eac2031453c9bb97383/.github/workflows/builds-and-tests.yml#L76
Being able to control the permission was the trigger to use this. Seeing this in documentation would be great. Thanks for this thread!
from cancel-workflow-action.
Great, feel free to submit a PR to update the README π
from cancel-workflow-action.
Related Issues (20)
- `Error: Not Found` when running action HOT 3
- Prints a lot details and makes action messier. HOT 4
- GitHub Action marketplace page not updated with latest version info HOT 1
- Cancel action makes our repo test badge "failing" HOT 4
- Fork-based setup seems to cancel itself and not the target workflows HOT 7
- Finding 0 runs HOT 5
- Actions now has built-in cancelation HOT 2
- Does this work on prs? HOT 1
- cancel workflow without email? HOT 2
- possible to cancel previous workflows only when a specific job has not been started? HOT 1
- how to make a cancelled workflow count as skip instead of failed? HOT 3
- Use Node.js v16 HOT 2
- Cancelling the current run HOT 2
- Archive this repo HOT 3
- error message using this step HOT 5
- It should cancel all instances of running workflow when workflow name in workflow_id is specified HOT 3
- Cancel Actions Got A Error HOT 1
- Flag to pick `in_progress`, `waiting` or both to be canceled HOT 2
- Deprecation warning for use of Node 16
- Azure Pipelines alternative HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cancel-workflow-action.