Skip to content

Commit

Permalink
Harden the ci infrastructure for better security
Browse files Browse the repository at this point in the history
Following some of the advice given in briansmith/untrusted#50.
  • Loading branch information
Jacalz committed Oct 31, 2021
1 parent ba7b22e commit 9b703bf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/mobile_tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Mobile Tests
on: [push, pull_request]
permissions:
contents: read

jobs:
mobile_tests:
Expand All @@ -11,6 +13,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: WillAbides/[email protected]
with:
go-version: ${{ matrix.go-version }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/platform_tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Platform Tests
on: [push, pull_request]
permissions:
contents: read

jobs:
platform_tests:
Expand All @@ -12,6 +14,8 @@ jobs:

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: WillAbides/[email protected]
id: setup-go-faster
with:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
name: Static Analysis
on: [push, pull_request]
permissions:
contents: read

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: WillAbides/[email protected]
with:
go-version: '1.17.x'
Expand Down

0 comments on commit 9b703bf

Please sign in to comment.