Comments (3)
Absolutely there is a way!
- Create a new file
.github/workflows/lighthouserc.json
with:
{
"ci": {
"collect": {
"settings": {
"extraHeaders": {
"Lighthouse-Key": "{{LIGHTHOUSE_KEY}}"
}
}
}
}
}
- Add another job step before the
treosh/lighthouse-ci-action
step to transpile the value using your secret:
- name: Prepare envs
run: |
sed -i "s/{{LIGHTHOUSE_KEY}}/${YOUR_SECRET}/g" .github/workflows/lighthouserc.json
- Finally set a path to this custom lighthouserc file
uses: treosh/lighthouse-ci-action@v8
with:
configPath: .github/workflows/lighthouserc.json
from lighthouse-ci-action.
Thank you for the creative work around! Unfortunately this results in the secret landing on the disk as just a value. It could potentially find it's way into logs and other output. That's why I wanted to use the CLI flag functionality (so it would only exist in the virtual environment's memory and preferably as an environment variable; Actions would be better able to track that it's a secret value and obscure it from outputs).
Edit to add: If someone tells me, "just write your AWS access key and secret to a file during the build", that's a non-starter from a security perspective.
from lighthouse-ci-action.
Makes sense 👍
from lighthouse-ci-action.
Related Issues (20)
- Recipe for using with a lighthouse plugin results in an error
- Is there a way I can automate auth, for pages that need a user to be logged in? HOT 3
- Node.js 12 actions are deprecated HOT 1
- Only uploading single report for multiple runs
- A way to set cookies before running the analysis ? HOT 1
- Include custom Puppetter Script support to this action.
- The CHROME_PATH environment variable must be set to a Chrome/Chromium executable HOT 2
- Fail during build .dist folder open
- Update lighthouse to v0.11.0 HOT 4
- From 16.03.2023 , Using treosh/lighthouse-ci-action@v9 giving this error : Cannot create new tab, and no tabs already open HOT 6
- Possibility to combine staticDistDir and urls
- Update lighthouse to v0.12.0
- Cannot download lighthouse html reports when using puppeteer
- New Bfcache audit in Lighthouse 10 fails HOT 1
- Custom `retention-days` for artifacts
- Action incorrectly failing when using `includePassedAssertions` HOT 2
- How to pass password when deploy preview in Netlify is protected?
- Access more detailed metrics HOT 2
- Adding a cookie to the request HOT 2
- how to test original URL?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lighthouse-ci-action.