Skip to content

Commit

Permalink
fixed the token-permission and pinned-dependencies issue
Browse files Browse the repository at this point in the history
Signed-off-by: harshitasao <[email protected]>
  • Loading branch information
harshitasao authored and poiana committed Sep 4, 2024
1 parent 4053c6e commit 9f180b9
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions:
contents: read

jobs:
fetch-version:
uses: ./.github/workflows/reusable_fetch_version.yaml
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
# The branches below must be a subset of the branches above
branches: [ "master" ]

permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Codespell
on:
pull_request:
permissions:
contents: read

jobs:
codespell:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/engine-version-weakcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- 'userspace/engine/*.cpp'
- 'userspace/engine/*.h'

permissions:
contents: read

jobs:
paths-filter:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/insecure-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- 'release/**'
- 'maintainers/**'

permissions:
contents: read

jobs:
insecure-api:
name: check-insecure-api
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ concurrency:
group: ci-master
cancel-in-progress: true

permissions:
contents: read

jobs:
fetch-version:
uses: ./.github/workflows/reusable_fetch_version.yaml
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ concurrency:
group: ci-release
cancel-in-progress: true

permissions:
contents: read

jobs:
release-settings:
runs-on: ubuntu-latest
Expand All @@ -16,7 +19,7 @@ jobs:
bucket_suffix: ${{ steps.get_settings.outputs.bucket_suffix }}
steps:
- name: Get latest release
uses: rez0n/[email protected]
uses: rez0n/actions-github-release@27a57820ee808f8fd940c8a9d1f7188f854aa2b5 # v2.0
id: latest_release
env:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable_build_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ on:
default: ''
type: string

permissions:
contents: read

jobs:
build-and-test:
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable_build_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ on:
# then we upload all the tarballs to be later downloaded by reusable_publish_docker workflow.
# In this way, we don't need to publish any arch specific image,
# and this "build" workflow is actually only building images.
permissions:
contents: read

jobs:
build-docker:
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable_build_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
type: boolean
default: false

permissions:
contents: read

jobs:
build-modern-bpf-skeleton:
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/reusable_fetch_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
description: "Falco version"
value: ${{ jobs.fetch-version.outputs.version }}

permissions:
contents: read

jobs:
# We need to use an ubuntu-latest to fetch Falco version because
# Falco version is computed by some cmake scripts that do git sorceries
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/reusable_test_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ on:
default: false
type: boolean

permissions:
contents: read

jobs:
test-packages:
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
Expand Down Expand Up @@ -54,7 +57,7 @@ jobs:
- name: Run tests
env:
LSAN_OPTIONS: "intercept_tls_get_addr=0"
uses: falcosecurity/testing@main
uses: falcosecurity/testing@32e319ae505fb330ae74db4502e605a5e517ff22 # main
with:
test-falco: 'true'
test-falcoctl: 'true'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/staticanalysis.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: StaticAnalysis
on:
pull_request:
permissions:
contents: read

jobs:
staticanalysis:
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 9f180b9

Please sign in to comment.