mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-05 14:46:10 +02:00
Merge pull request #3135 from sashashura/patch-2
GitHub Workflows security hardening
This commit is contained in:
commit
d2dd32abbc
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@ -6,9 +6,16 @@ on:
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
checks: write # to create a new check based on the results (shogo82148/actions-goveralls)
|
||||
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
4
.github/workflows/docs.yml
vendored
4
.github/workflows/docs.yml
vendored
@ -5,8 +5,12 @@ on:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
permissions: {}
|
||||
jobs:
|
||||
release_docs:
|
||||
permissions:
|
||||
contents: write # for mike to push
|
||||
|
||||
name: Release Docs
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
5
.github/workflows/release-chart.yaml
vendored
5
.github/workflows/release-chart.yaml
vendored
@ -7,8 +7,13 @@ on:
|
||||
paths:
|
||||
- "charts/external-dns/Chart.yaml"
|
||||
|
||||
permissions: {}
|
||||
jobs:
|
||||
release:
|
||||
|
||||
permissions:
|
||||
contents: write # to push chart release and create a release (helm/chart-releaser-action)
|
||||
|
||||
if: github.repository == 'kubernetes-sigs/external-dns'
|
||||
runs-on: ubuntu-latest
|
||||
defaults:
|
||||
|
||||
4
.github/workflows/trivy.yml
vendored
4
.github/workflows/trivy.yml
vendored
@ -1,6 +1,10 @@
|
||||
name: trivy vulnerability scanner
|
||||
on:
|
||||
push:
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user