Skip to content

Commit

Permalink
github_pat som miljøvariabel igjen
Browse files Browse the repository at this point in the history
  • Loading branch information
arnfinn committed Oct 9, 2024
1 parent 9589441 commit a55f965
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@ concurrency:
jobs:
snyk:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ github.token }}
steps:
- uses: actions/checkout@v4
- name: R setup
uses: r-lib/actions/setup-r@v2.10.1
- name: Build package (tarball)
run: R CMD build .
- name: Build docker image
run: export GITHUB_PAT=${{ github.token }} && docker build -t snyktest --secret id=GITHUB_PAT .
run: docker build -t snyktest --secret id=GITHUB_PAT .
- name: Run Snyk to check Docker image for vulnerabilities
continue-on-error: true
uses: snyk/actions/docker@master
Expand Down

0 comments on commit a55f965

Please sign in to comment.