build: github Workflows security hardening (#11843)
This commit is contained in:
parent
fd2e1675f5
commit
e292ad2b4c
|
|
@ -9,6 +9,10 @@ on:
|
||||||
schedule:
|
schedule:
|
||||||
# Trigger every day at 16:00 UTC
|
# Trigger every day at 16:00 UTC
|
||||||
- cron: '0 16 * * *'
|
- cron: '0 16 * * *'
|
||||||
|
permissions:
|
||||||
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
pull-requests: read # to fetch pull requests (golangci/golangci-lint-action)
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
golangci-pr:
|
golangci-pr:
|
||||||
if: github.ref != 'refs/heads/master'
|
if: github.ref != 'refs/heads/master'
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,15 @@ on:
|
||||||
###############
|
###############
|
||||||
# Set the Job #
|
# Set the Job #
|
||||||
###############
|
###############
|
||||||
|
permissions: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# Name the Job
|
# Name the Job
|
||||||
|
permissions:
|
||||||
|
contents: read # to fetch code (actions/checkout)
|
||||||
|
statuses: write # to mark status of each linter run (github/super-linter)
|
||||||
|
|
||||||
name: Lint Code Base
|
name: Lint Code Base
|
||||||
# Set the agent to run on
|
# Set the agent to run on
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue