mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-10 03:47:03 +02:00
38ea40c442
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
32 lines
737 B
YAML
32 lines
737 B
YAML
name: docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- 'www/*'
|
|
pull_request:
|
|
paths:
|
|
- 'www/*'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
htmltest:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
|
|
- uses: arduino/setup-task@ca745e18916de727f841ec824ac20a615f1cddea # v1
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: actions/setup-go@f6164bd8c8acb4a71fb2791a8b6c4024ff038dab # v2
|
|
with:
|
|
go-version: 1.18
|
|
- run: task docs:build
|
|
- uses: wjdp/htmltest-action@09118714cd26bef56bd3d0819e4f9b1dce6f60a9 # master
|
|
with:
|
|
path: www/site
|
|
config: www/htmltest.yml
|