mirror of
https://github.com/mandiant/capa.git
synced 2026-04-28 11:53:20 -07:00
ci: use explicit and per job permissions (#3002)
* ci: use explicit and per job permissions * update CHANGELOG
This commit is contained in:
5
.github/workflows/web-deploy.yml
vendored
5
.github/workflows/web-deploy.yml
vendored
@@ -12,8 +12,6 @@ on:
|
||||
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
# Allow one concurrent deployment
|
||||
concurrency:
|
||||
@@ -105,6 +103,9 @@ jobs:
|
||||
|
||||
deploy:
|
||||
name: Deploy site to GitHub Pages
|
||||
permissions:
|
||||
pages: write
|
||||
id-token: write
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
Reference in New Issue
Block a user