ci: Set permissions in workflows (#3011)

pull/3015/head
Timothy Messier 3 years ago committed by GitHub
parent 86214a85e1
commit 2a47e9ddf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,6 +7,9 @@ on:
- closed
- labeled
permissions:
contents: read
jobs:
backport:
if: github.event.pull_request.merged

@ -6,6 +6,9 @@ on:
- "website/content/**/*.mdx"
- "website/data/*-nav-data.json"
permissions:
contents: read
jobs:
check-links:
uses: hashicorp/dev-portal/.github/workflows/docs-content-check-legacy-links-format.yml@475289345d312552b745224b46895f51cc5fc490

@ -4,6 +4,9 @@ on:
schedule:
- cron: '0 15 * * 0'
permissions:
contents: read
jobs:
CodeQL-Build:

@ -6,6 +6,9 @@ on:
paths:
- enos/**
permissions:
contents: read
jobs:
fmt_check:
# Only run this workflow on pull requests from hashicorp/boundary branches

@ -13,6 +13,9 @@ on:
required: true
type: string
permissions:
contents: read
env:
PKG_NAME: boundary

@ -7,6 +7,9 @@ on:
types: [created]
workflow_dispatch:
permissions:
contents: read
name: Jira Sync
jobs:

@ -2,6 +2,9 @@ name: "Pull Request Labeler"
on:
- pull_request_target
permissions:
content: read
jobs:
triage:
runs-on: ${{ fromJSON(vars.RUNNER) }}

@ -1,6 +1,9 @@
name: "golangci-lint"
on: ["pull_request"]
permissions:
contents: read
jobs:
lint:
name: "Run Linter"

@ -4,6 +4,9 @@ on:
- push
- workflow_call
permissions:
contents: read
jobs:
make-gen-delta:
name: "Check for uncommited changes from make gen"

@ -11,6 +11,9 @@ on:
- main
- release/**
permissions:
contents: read
jobs:
# checks that a milestone entry is present for a PR
milestone-check:

@ -7,6 +7,9 @@ on:
branches:
- 'main'
permissions:
contents: read
jobs:
scan:
runs-on: ubuntu-latest

@ -1,5 +1,8 @@
name: test-ci-bootstrap-oss
permissions:
contents: read
on:
pull_request:
branches:

@ -4,6 +4,9 @@ on:
# * is a special character in YAML so you have to quote this string
- cron: '05 02 * * *'
permissions:
contents: read
jobs:
setup:
if: ${{ github.event.repository.name == 'boundary' }}

@ -2,6 +2,9 @@ name: Test Link Rewrites
on: [deployment_status]
permissions:
contents: read
jobs:
test-link-rewrites:
if: github.event.deployment_status.state == 'success'

@ -5,6 +5,9 @@ on:
- push
- workflow_call
permissions:
contents: read
jobs:
test-sql:
runs-on: ${{ fromJSON(vars.RUNNER) }}

Loading…
Cancel
Save