Skip to content

Commit

Permalink
More strict permissions (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg authored Mar 20, 2023
1 parent 2af24ae commit 98f4645
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: build

permissions: read-all
permissions: {} # no need any permissions

on:
push:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Go Build
run: go build -o /dev/null ./...

- name: Go Compile
- name: Go Compile Tests
if: ${{ inputs.skipTests }}
run: go test -exec /bin/true ./...

Expand Down
36 changes: 0 additions & 36 deletions .github/workflows/codeql.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: lint

permissions: read-all
permissions: {} # no need any permissions

on:
push:
Expand All @@ -19,16 +19,16 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # latest
uses: actions/checkout@v3

- name: Install Go
uses: actions/setup-go@v4 # latest
uses: actions/setup-go@v4
with:
go-version: 'stable'
check-latest: true

- name: Lint
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5 # latest
uses: golangci/golangci-lint-action@v3.4.0
with:
version: latest
args: --timeout 5m
2 changes: 1 addition & 1 deletion .github/workflows/vuln.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: vuln

permissions: read-all
permissions: {} # no need any permissions

on:
push:
Expand Down

0 comments on commit 98f4645

Please sign in to comment.